|File->New menu contributions [message #467579]
||Tue, 08 May 2007 07:30
Originally posted by: torbjorn.ghostwriter.no|
Hi, I'm using the common navigator in my RCP application, and I have two
1. How can I make the New submenu appear under the file menu in the main
2. How can I add my own actions to the New submenu?
|Re: File->New menu contributions [message #467590 is a reply to message #467579]
||Tue, 08 May 2007 13:32
| Paul E. Keyser
Registered: July 2009
My answer applies to an RCP, but I have not used the common nav., which may perhaps change things.|
1) in your app's ActionBarAdvisor, method fillCoolBar(), include this code:
final IWorkbenchWindow window =
and when you are creating your file-menu, in method fillMenuBar(), supply this code:
final String newId = ActionFactory.NEW.getId();
final MenuManager newMenu = new MenuManager("New...", newId);
final IContributionItem newWizards =
2) in the plugin.xml (of whichever component plug-in makes sense), extend
"org.eclipse.ui.newWizards", add a "wizard" child, and in its markup supply a class that extends
Wizard and implements INewWizard. I use for "category" the value "org.eclipse.ui.Basic/" (trailing
slash required, for some reason).
Torbjørn G. Dahle wrote:
> Hi, I'm using the common navigator in my RCP application, and I have two
> 1. How can I make the New submenu appear under the file menu in the main
> menu bar?
> 2. How can I add my own actions to the New submenu?
> - Torbjørn
Powered by FUDForum
. Page generated in 0.01307 seconds