开发者

Launch an action in Eclipse RCP at startup

开发者 https://www.devze.com 2022-12-19 06:27 出处:网络
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.

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" action by default at startup. How do I do this?


Solved this by using the WorkbenchAdvisor implementation:

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

The Startup extension proved futile.


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

精彩评论

暂无评论...
验证码 换一张
取 消