Пример #1
0
        public override void InitializePlugin(IPoderosaWorld poderosa) {
            base.InitializePlugin(poderosa);
            _instance = this;

            IPluginManager pm = poderosa.PluginManager;
            ICoreServices cs = (ICoreServices)poderosa.GetAdapter(typeof(ICoreServices));
            _commandManager = cs.CommandManager;
            Debug.Assert(_commandManager != null);
            SSHUtilCommand.Register(_commandManager);

            SSHUtilMenuGroup sshmenu = new SSHUtilMenuGroup();
            IExtensionPoint toolmenu = pm.FindExtensionPoint("org.poderosa.menu.tool");
            toolmenu.RegisterExtension(sshmenu);

            _keyAgent = new KeyAgent();
            cs.PreferenceExtensionPoint.RegisterExtension(_keyAgent);
            pm.FindExtensionPoint(ProtocolsPluginConstants.RESULTEVENTHANDLER_EXTENSION).RegisterExtension(_keyAgent);
        }
Пример #2
0
        public override void InitializePlugin(IPoderosaWorld poderosa)
        {
            base.InitializePlugin(poderosa);
            _instance = this;

            IPluginManager pm = poderosa.PluginManager;
            ICoreServices  cs = (ICoreServices)poderosa.GetAdapter(typeof(ICoreServices));

            _commandManager = cs.CommandManager;
            Debug.Assert(_commandManager != null);
            SSHUtilCommand.Register(_commandManager);

            SSHUtilMenuGroup sshmenu  = new SSHUtilMenuGroup();
            IExtensionPoint  toolmenu = pm.FindExtensionPoint("org.poderosa.menu.tool");

            toolmenu.RegisterExtension(sshmenu);

            _keyAgent = new KeyAgent();
            cs.PreferenceExtensionPoint.RegisterExtension(_keyAgent);
            pm.FindExtensionPoint(ProtocolsPluginConstants.RESULTEVENTHANDLER_EXTENSION).RegisterExtension(_keyAgent);
        }