Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » specifying location of a new group to be added the file menu
specifying location of a new group to be added the file menu [message #336093] Thu, 21 May 2009 00:43 Go to next message
No real name is currently offline No real name
Messages: 4
Registered: July 2009
Junior Member
Hi,

I have been trying to add a new menu item under the file menu which will
also be its own group, that is, it will be surrounded by separators. I
would like to put this new group after the fileStart group (that is, after
the separator following the "New" and "Open File.."). I have successfully
created the new menu item with the seperators but by default this new item
is placed between the "Export.." and "Properties" menu items. I have been
reading the help file but have not yet found a way to place it where I
want it to go. Has anyone tried to do this before? If so, will you please
give me some advice?
Re: specifying location of a new group to be added the file menu [message #336102 is a reply to message #336093] Thu, 21 May 2009 13:22 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Check out
org.eclipse.ui.internal.ide.WorkbenchActionBuilder.createFil eMenu() to
see the structure that is created for the File menu. What are you doing
to add these? In org.eclipse.ui.menus, the locationURI would be
something like menu:file?after=<id> where <id> is the ID of something
(like a group marker or separator) to begin inserting after.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:[CommonNavigator] How to use wizards?
Next Topic:Locate Eclipse executable at runtime?
Goto Forum:
  


Current Time: Fri Oct 24 18:18:58 GMT 2014

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

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