| [news.eclipse.platform.ua] Re: Add RCP Help |
You may still be missing some plug-ins.
Hello,
I tried to add help to "Test" application while learning RCP Eclipse, but without success.
I included
org.eclipse.equinox.http.jetty
org.eclipse.help.appserver
org.eclipse.help.base
org.eclipse.help.ui
org.eclipse.help.webapp
org.eclipse.ui.forms
into target platform.
Then I added following code.
//-------------------------------------------------
public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
private IWorkbenchAction iHelpContentsAction;
...
...
protected void makeActions(IWorkbenchWindow window) { iHelpContentsAction = ActionFactory.HELP_CONTENTS.create(window);
register(iHelpContentsAction);
}
...
...
protected void fillMenuBar(IMenuManager menuBar) {
helpMenu.add(iHelpContentsAction);
....
//-------------------------------------------------
Menu "Help Contents" is showing correctly in menu bar but when I click on it nothing happens.
I am runnig "Test" as application so there shouldn't be problem with missing plugins. I am sure this is dumb question but I've searched groups with realizing that many problems can be caused by missing register(IAction) or exporting product without help system. This is not my case I think.
Thank you for your tips.
M.
P.S. I know I can use commands instead of fillMenuBar but first I want to see Help dialog :).