rcp调eclipse帮助

1. 在ApplicationActionBarAdvisor类中定义Action: private IWorkbenchAction helpContentsAction;

2. 在makeActions方法中注册: helpContentsAction = ActionFactory.HELP_CONTENTS.create(window); register(helpContentsAction);

3. 在fillMenuBar方法中添加菜单: MenuManager helpMenu = new MenuManager("&Help", IWorkbenchActionConstants.M_HELP); menuBar.add(helpMenu); helpMenu.add(helpContentsAction);

4. 在.product文件中配置必须的这七个依赖项:

1. org.apache.lucene

2. org.eclipse.help.appserver

3. org.eclipse.help.base

4. org.eclipse.help.ui

5. org.eclipse.help.webapp

6. org.eclipse.tomcat

7.org.eclipse.ui.forms

万事ok~~不过给rcp又加了不少东西呀。

你可能感兴趣的:(eclipse,eclipse,action)