Files
UnrealEngineUWP/Engine/Source/Editor/DataTableEditor/Public/DataTableRowUtlis.cpp
Chris Gagnon 2e87118a18 Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) Interim 4.24.
#rb none

[CL 8614014 by Chris Gagnon in Main branch]
2019-09-10 11:35:20 -04:00

25 lines
932 B
C++

// 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"
#include "Framework/Commands/GenericCommands.h"
#include "IDataTableEditor.h"
#define LOCTEXT_NAMESPACE "FDataTableRowUtils"
void FDataTableRowUtils::AddSearchForReferencesContextMenu(FDetailWidgetRow& RowNameDetailWidget, FExecuteAction SearchForReferencesAction)
{
if (SearchForReferencesAction.IsBound() && FEditorDelegates::OnOpenReferenceViewer.IsBound())
{
RowNameDetailWidget.AddCustomContextMenuAction(FUIAction(SearchForReferencesAction),
LOCTEXT("FDataTableRowUtils_SearchForReferences", "Find Row References"),
LOCTEXT("FDataTableRowUtils_SearchForReferencesTooltip", "Find assets that reference this Row"),
FSlateIcon());
}
}
#undef LOCTEXT_NAMESPACE