Files
UnrealEngineUWP/Engine/Source/Editor/DataTableEditor/Private/DataTableEditorModule.cpp
Matthew Griffin bb70b349ce Merging CL 2804086 from //UE4/Release-4.11 to Dev-Main (//UE4/Dev-Main) to isolate copyright update
#lockdown Nick.Penwarden

[CL 2819020 by Matthew Griffin in Main branch]
2016-01-07 08:17:16 -05:00

33 lines
958 B
C++

// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "DataTableEditorPrivatePCH.h"
#include "ModuleManager.h"
#include "DataTableEditor.h"
#include "Toolkits/ToolkitManager.h"
#include "Engine/DataTable.h"
IMPLEMENT_MODULE( FDataTableEditorModule, DataTableEditor );
const FName FDataTableEditorModule::DataTableEditorAppIdentifier( TEXT( "DataTableEditorApp" ) );
void FDataTableEditorModule::StartupModule()
{
MenuExtensibilityManager = MakeShareable(new FExtensibilityManager);
}
void FDataTableEditorModule::ShutdownModule()
{
MenuExtensibilityManager.Reset();
}
TSharedRef<IDataTableEditor> FDataTableEditorModule::CreateDataTableEditor( const EToolkitMode::Type Mode, const TSharedPtr< IToolkitHost >& InitToolkitHost, UDataTable* Table )
{
TSharedRef< FDataTableEditor > NewDataTableEditor( new FDataTableEditor() );
NewDataTableEditor->InitDataTableEditor( Mode, InitToolkitHost, Table );
return NewDataTableEditor;
}