2019-12-26 15:33:43 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2019-01-08 11:38:48 -05:00
|
|
|
|
|
|
|
|
#include "DataTableRowUtlis.h"
|
|
|
|
|
#include "DetailWidgetRow.h"
|
|
|
|
|
#include "Editor.h"
|
|
|
|
|
#include "Framework/MultiBox/MultiBoxBuilder.h"
|
|
|
|
|
#include "Textures/SlateIcon.h"
|
|
|
|
|
#include "Widgets/SWidget.h"
|
2019-06-04 15:42:48 -04:00
|
|
|
#include "Framework/Commands/GenericCommands.h"
|
|
|
|
|
#include "IDataTableEditor.h"
|
2019-01-08 11:38:48 -05:00
|
|
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "FDataTableRowUtils"
|
|
|
|
|
|
|
|
|
|
void FDataTableRowUtils::AddSearchForReferencesContextMenu(FDetailWidgetRow& RowNameDetailWidget, FExecuteAction SearchForReferencesAction)
|
|
|
|
|
{
|
|
|
|
|
if (SearchForReferencesAction.IsBound() && FEditorDelegates::OnOpenReferenceViewer.IsBound())
|
|
|
|
|
{
|
2019-09-10 11:35:20 -04:00
|
|
|
RowNameDetailWidget.AddCustomContextMenuAction(FUIAction(SearchForReferencesAction),
|
|
|
|
|
LOCTEXT("FDataTableRowUtils_SearchForReferences", "Find Row References"),
|
|
|
|
|
LOCTEXT("FDataTableRowUtils_SearchForReferencesTooltip", "Find assets that reference this Row"),
|
|
|
|
|
FSlateIcon());
|
2019-01-08 11:38:48 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|