2019-01-14 16:55:55 -05:00
|
|
|
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "DataTableRowUtlis.h"
|
|
|
|
|
#include "DetailWidgetRow.h"
|
|
|
|
|
#include "Editor.h"
|
|
|
|
|
#include "Framework/MultiBox/MultiBoxBuilder.h"
|
|
|
|
|
#include "Textures/SlateIcon.h"
|
|
|
|
|
#include "Widgets/SWidget.h"
|
2019-04-09 17:09:42 -04:00
|
|
|
#include "Framework/Commands/GenericCommands.h"
|
|
|
|
|
#include "IDataTableEditor.h"
|
2019-01-14 16:55:55 -05:00
|
|
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "FDataTableRowUtils"
|
|
|
|
|
|
|
|
|
|
void FDataTableRowUtils::AddSearchForReferencesContextMenu(FDetailWidgetRow& RowNameDetailWidget, FExecuteAction SearchForReferencesAction)
|
|
|
|
|
{
|
|
|
|
|
if (SearchForReferencesAction.IsBound() && FEditorDelegates::OnOpenReferenceViewer.IsBound())
|
|
|
|
|
{
|
2019-08-28 14:45:19 -04:00
|
|
|
RowNameDetailWidget.AddCustomContextMenuAction(FUIAction(SearchForReferencesAction),
|
|
|
|
|
LOCTEXT("FDataTableRowUtils_SearchForReferences", "Find Row References"),
|
|
|
|
|
LOCTEXT("FDataTableRowUtils_SearchForReferencesTooltip", "Find assets that reference this Row"),
|
|
|
|
|
FSlateIcon());
|
2019-01-14 16:55:55 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|