Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to control the position of contributed menu actions?
How to control the position of contributed menu actions? [message #672145] Fri, 20 May 2011 04:07 Go to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 1
Registered: May 2011
Junior Member
I'm working on my first RCP application and I've been trying to recreate large parts of the standard Eclipse menus. So far it's going pretty well.

Recently I activated a couple of the standard Eclipse plugins to be included in my app and suddenly the "Key Assist..." command started showing up in my "Help" menu. That's great, but it's in an awkward spot -- right *after* my "About" command. How do I reposition the "Key Assist..." command so it's *before* "About"? (Ideally it would be after a separator after "Dynamic Help" -- exactly as it appears in Eclipse).

If it matters, I've implemented the fillMenuBar method in my ApplicationActionBarAdvisor class and I'm using ActionFactory to construct (most of) the standard Eclipse menu commands. I have not declared any menus in my plugin.xml file.
Re: How to control the position of contributed menu actions? [message #672246 is a reply to message #672145] Fri, 20 May 2011 12:52 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

See org.eclipse.ui.internal.ide.WorkbenchActionBuilder.createHelpMenu() in the org.eclipse.ui.ide plugin.

That will give you an idea of the groups that were used to create the Help menu in the Eclipse IDE/SDK. If one of the plugins you have now added is contributing the Key Assist menu item, it might be depending on a group marker you haven't added yet.

PW


Previous Topic:How to interact with CNF (Common Navigator Framework) and Editor
Next Topic:Standalone view not resizable
Goto Forum:
  


Current Time: Fri Apr 26 21:48:55 GMT 2024

Powered by FUDForum. Page generated in 0.03013 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top