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 nameFriend
Messages: 4
Registered: July 2009
Junior Member

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 WebsterFriend
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.


Paul Webster e.platform.doc.isv/guide/workbench.htm

Previous Topic:More control over Eclipse builders
Next Topic:Listening to Team events
Goto Forum:

Current Time: Thu Apr 26 04:17:22 GMT 2018

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

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