Launch an action in Eclipse RCP at startup

后端 未结 2 1519
耶瑟儿~
耶瑟儿~ 2021-01-05 08:06

I have an RCP plug-in and I have configured the help system to run within this plug-in. I can access it from the Help menu.

Now I want to launch the \"Dynamic Help\

相关标签:
2条回答
  • 2021-01-05 08:48

    You could use the org.eclipse.ui.startup extension and implement the org.eclipse.ui.IStartup interface that allows you to run code once the workbench has initialized.

    0 讨论(0)
  • 2021-01-05 09:06

    Solved this by using the WorkbenchAdvisor implementation:

    @Override
    public void postStartup() {
        IWorkbenchHelpSystem help = PlatformUI.getWorkbench().getHelpSystem();
        help.displayDynamicHelp();
    }
    

    The Startup extension proved futile.

    0 讨论(0)
提交回复
热议问题