예제 #1
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;
        }
예제 #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();
            }
        }
예제 #3
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;
 }