Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to contribute a popup menu to Trim Area
How to contribute a popup menu to Trim Area [message #328717] Mon, 02 June 2008 18:24 Go to next message
Hongying is currently offline HongyingFriend
Messages: 11
Registered: July 2009
Junior Member
Hello,
I need find out how to contribute a popup menu to Shell trim area. I
searched around, and I couldn't find any useful instruction or sample.

Can someone please give me some instruction of how to do this.

thanks,
Hongying Zhang
Re: How to contribute a popup menu to Trim Area [message #328927 is a reply to message #328717] Fri, 06 June 2008 18:17 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can create your trim Menu using a MenuManager, and then use
IMenuService#populateContributionManager(*) with your own unique ID to
allow contributions to it.

You can't get object contributions into the trim.

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/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:How can i construct editor's container (i.e. IEditorSite)?
Next Topic:Multipage Header Toolbar-, Menu- Manager population
Goto Forum:
  


Current Time: Wed Jul 17 18:27:08 GMT 2024

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

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

Back to the top