Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » tell me some popupmenu items
tell me some popupmenu items [message #480421] Mon, 17 August 2009 05:02 Go to next message
Eclipse UserFriend
Originally posted by: shenji.ecquaria.com

now i want create a menu on top of popupmenu,see org.eclipse.ui.menus and
org.eclipse.ui.popupMenus often used "additions",why i can't find another
items
similar with "additions"£¬could you tell me some other existing popupmenu
items?thank you.

<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?before=additions ">
<menu
id="xxx.menu1"
label="test">
</menu>
</menuContribution>
</extension>
Re: tell me some popupmenu items [message #480585 is a reply to message #480421] Mon, 17 August 2009 18:12 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You would need to put a separator named "additions" in your created menu.

Then you have to put items in it in order to make that menu appear.

PW


Re: tell me some popupmenu items [message #480629 is a reply to message #480585] Tue, 18 August 2009 01:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shenji.ecquaria.com

but eclipse had a separator named "additions" already,i have know how to
do,you can write as "before=group.new" or "before=group.show" and so
on,then the menu will appear above the popupmenu "new" or "show".
Re: tell me some popupmenu items [message #480634 is a reply to message #480421] Tue, 18 August 2009 02:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shenji.ecquaria.com

when used "before=group.new","test" appear on top of popupmenu in Package
Explorer view,but there is no change in Navigator view.is there any way to
let it top of popupmenu in the Navigator view.
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?before=group.new ">
<menu
id="xxx.menu1"
label="test">
</menu>
</menuContribution>
</extension>
Re: tell me some popupmenu items [message #480704 is a reply to message #480634] Tue, 18 August 2009 09:46 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Oh, you mean how could you add your menu at the top of every popup menu where it would appear?

The answer is you cannot. Each part uses different group markers in different places when creating their popup menus, and some parts don't use any other group marker than "additions". That you were able to do it in the Package Explorer is impressive Smile

PW


Re: tell me some popupmenu items [message #480716 is a reply to message #480704] Tue, 18 August 2009 10:05 Go to previous message
Eclipse UserFriend
Originally posted by: shenji.ecquaria.com

Thank you!
Previous Topic:Opening drop down menu from cheat sheet
Next Topic:3.6 I-Build update site not working
Goto Forum:
  


Current Time: Thu Mar 28 21:56:44 GMT 2024

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

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

Back to the top