#region License
// Copyright 2005-2019 Paul Kohler (https://github.com/paulkohler/minisqlquery). All rights reserved.
// This source code is made available under the terms of the GNU Lesser General Public License v3.0
// https://github.com/paulkohler/minisqlquery/blob/master/LICENSE
#endregion
using MiniSqlQuery.Core;
using MiniSqlQuery.PlugIns.TemplateViewer.Commands;
using WeifenLuo.WinFormsUI.Docking;
namespace MiniSqlQuery.PlugIns.TemplateViewer
{
/// The template viewer loader.
public class TemplateViewerLoader : PluginLoaderBase
{
/// Initializes a new instance of the class.
public TemplateViewerLoader()
: base("模板查看器", "用于显示模板SQL项的迷你SQL查询插件。", 50)
{
}
/// Iinitialize the plug in.
public override void InitializePlugIn()
{
Services.RegisterEditor(new FileEditorDescriptor("Template Editor", "mt-editor", "mt"));
Services.RegisterComponent("TemplateHost");
Services.RegisterComponent("TemplateData");
Services.RegisterComponent("TemplateViewForm");
Services.HostWindow.AddPluginCommand();
Services.HostWindow.ShowToolWindow(Services.Resolve(), DockState.DockLeft);
}
}
}