Наследование: Poderosa.Plugins.PluginBase
Пример #1
0
        public override void InitializePlugin(IPoderosaWorld poderosa) {
            base.InitializePlugin(poderosa);
            _instance = this;

            IPluginManager pm = poderosa.PluginManager;
            _commandManager = (ICommandManager)pm.FindPlugin("org.poderosa.core.commands", typeof(ICommandManager));
            _loginDialogCommand = new LoginDialogCommand();
            _commandManager.Register(_loginDialogCommand);

            IExtensionPoint ep = pm.FindExtensionPoint("org.poderosa.menu.file");
            _loginMenuGroup = new LoginMenuGroup();
            ep.RegisterExtension(_loginMenuGroup);

            IExtensionPoint toolbar = pm.FindExtensionPoint("org.poderosa.core.window.toolbar");
            _loginToolBarComponent = new LoginToolBarComponent();
            toolbar.RegisterExtension(_loginToolBarComponent);
        }
Пример #2
0
        public override void InitializePlugin(IPoderosaWorld poderosa)
        {
            base.InitializePlugin(poderosa);
            _instance = this;

            IPluginManager pm = poderosa.PluginManager;

            _commandManager     = (ICommandManager)pm.FindPlugin("org.poderosa.core.commands", typeof(ICommandManager));
            _loginDialogCommand = new LoginDialogCommand();
            _commandManager.Register(_loginDialogCommand);

            IExtensionPoint ep = pm.FindExtensionPoint("org.poderosa.menu.file");

            _loginMenuGroup = new LoginMenuGroup();
            ep.RegisterExtension(_loginMenuGroup);

            IExtensionPoint toolbar = pm.FindExtensionPoint("org.poderosa.core.window.toolbar");

            _loginToolBarComponent = new LoginToolBarComponent();
            toolbar.RegisterExtension(_loginToolBarComponent);
        }