SFTP Toolbar. This class also has menu group.
Inheritance: IToolBarComponent, IPositionDesignation, IActiveDocumentChangeListener
Esempio n. 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);
        }
Esempio n. 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);
        }