예제 #1
0
        /// <summary>
        /// Overrides PluginBase
        /// </summary>
        /// <param name="poderosa">Poderosa World</param>
        public override void InitializePlugin(IPoderosaWorld poderosa) {
            base.InitializePlugin(poderosa);
            _instance = this;
            
            SFTPToolbar toolbar = new SFTPToolbar();
            poderosa.PluginManager.FindExtensionPoint("org.poderosa.core.window.toolbar").RegisterExtension(toolbar);
            poderosa.PluginManager.FindExtensionPoint("org.poderosa.menu.tool").RegisterExtension(toolbar.MenuGroup);
            
            ICoreServices coreServices = (ICoreServices)poderosa.GetAdapter(typeof(ICoreServices));
            coreServices.SessionManager.AddActiveDocumentChangeListener(toolbar);

            poderosa.Culture.AddChangeListener(_stringResource);
        }
예제 #2
0
        /// <summary>
        /// Overrides PluginBase
        /// </summary>
        /// <param name="poderosa">Poderosa World</param>
        public override void InitializePlugin(IPoderosaWorld poderosa)
        {
            base.InitializePlugin(poderosa);
            _instance = this;

            SFTPToolbar toolbar = new SFTPToolbar();

            poderosa.PluginManager.FindExtensionPoint("org.poderosa.core.window.toolbar").RegisterExtension(toolbar);
            poderosa.PluginManager.FindExtensionPoint("org.poderosa.menu.tool").RegisterExtension(toolbar.MenuGroup);

            ICoreServices coreServices = (ICoreServices)poderosa.GetAdapter(typeof(ICoreServices));

            coreServices.SessionManager.AddActiveDocumentChangeListener(toolbar);

            poderosa.Culture.AddChangeListener(_stringResource);
        }