I think including one of the jars required for including
org.eclipse.ui.ide adds 'software updates' stuff and 'key assist...'
stuff. It adds this to your help menu, and when you don't have one set
up, it complains to syserr. So all I have done is put in the code for
including a help menu in the menu bar. That seemed to work.
The solution:
Add the below indicated lines (shown with ">>>" preceding the line) to
your ApplicationActionBarAdvisor or whatever extends ActionBarAdvisor in
your case. This added code is added to whatever code you may already
have in place (doesn't replace it. Just add these indicated lines in to
your fillMenuBar function)
protected void fillMenuBar(IMenuManager menuBar)
{
MenuManager fileMenu = new MenuManager("&File",
IWorkbenchActionConstants.M_FILE);
>>> MenuManager helpMenu = new MenuManager("&Help",
IWorkbenchActionConstants.M_HELP);
menuBar.add(fileMenu);
>>> menuBar.add(helpMenu);
// NOTE: you can add to Help menu but that is optional
>>> helpMenu.add(aboutAction);
}
Partager