在启动时在Eclipse RCP中启动操作 [英] Launch an action in Eclipse RCP at startup

查看:106
本文介绍了在启动时在Eclipse RCP中启动操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个RCP插件,我已将帮助系统配置为在此插件中运行。我可以从帮助菜单访问它。

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?

推荐答案

使用WorkbenchAdvisor实现解决了这个问题:

Solved this by using the WorkbenchAdvisor implementation:

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

Startup扩展证明是徒劳的。

The Startup extension proved futile.

这篇关于在启动时在Eclipse RCP中启动操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆