public override void InitializePlugin(IPoderosaWorld poderosa)
        {
            base.InitializePlugin(poderosa);
            _group1 = new MenuGroup1();
            _group2 = new MenuGroup2();
            IExtensionPoint ep = poderosa.PluginManager.FindExtensionPoint("org.poderosa.menu.file");

            ep.RegisterExtension(_group1);
            ep.RegisterExtension(_group2);
            _instance = this;
        }
Exemple #2
0
        public override void InitializePlugin(IPoderosaWorld poderosa)
        {
            base.InitializePlugin(poderosa);
            _group1 = new MenuGroup1();
            _group2 = new MenuGroup2();
            IExtensionPoint ep = poderosa.PluginManager.FindExtensionPoint("org.poderosa.menu.file");

            ep.RegisterExtension(_group1);
            ep.RegisterExtension(_group2);
            _instance = this;

            foreach (IViewManagerFactory mf in
                     poderosa.PluginManager.FindExtensionPoint(WindowManagerConstants.MAINWINDOWCONTENT_ID).GetExtensions())
            {
                mf.DefaultViewFactory = new ViewFactoryForTest();
            }
        }
 public override void InitializePlugin(IPoderosaWorld poderosa) {
     base.InitializePlugin(poderosa);
     _group1 = new MenuGroup1();
     _group2 = new MenuGroup2();
     IExtensionPoint ep = poderosa.PluginManager.FindExtensionPoint("org.poderosa.menu.file");
     ep.RegisterExtension(_group1);
     ep.RegisterExtension(_group2);
     _instance = this;
 }