Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Retrieving Menu Contributions programmatically
Retrieving Menu Contributions programmatically [message #537950] Fri, 04 June 2010 05:57 Go to next message
Heinrich Soebke is currently offline Heinrich Soebke
Messages: 2
Registered: July 2009
Junior Member
Is there a possibility to determine the context menu of a given object? There must be one, because this is done in the Eclipse UI ...
The Use Case is: Menu Contributions are defined in plugins and the should exposed via a kind of web service to a web application ... so that valid context menus can be retrieved by using the Eclipse RCP techniques.

Where could I start searching?

Thank you
Heinrich

[Updated on: Fri, 04 June 2010 06:01]

Report message to a moderator

Re: Retrieving Menu Contributions programmatically [message #538013 is a reply to message #537950] Fri, 04 June 2010 08:44 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You cannot access a view's context menu, or their view menu, etc (at
least not really).

But you can take an arbitrary ContributionManager and populate it with
the org.eclipse.ui.menus extension point contributions.

See
org.eclipse.ui.menus.IMenuService.populateContributionManage r(ContributionManager,
String) and
org.eclipse.ui.menus.IMenuService.releaseContributions(Contr ibutionManager)

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


Previous Topic:[e4] How to get ready ?
Next Topic:Disposing wizard page resources
Goto Forum:
  


Current Time: Wed Jul 30 03:22:46 EDT 2014

Powered by FUDForum. Page generated in 0.03413 seconds