Skip to main content



      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
Eclipse UserFriend
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] by Moderator

Re: Retrieving Menu Contributions programmatically [message #538013 is a reply to message #537950] Fri, 04 June 2010 08:44 Go to previous message
Eclipse UserFriend
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 23 18:31:39 EDT 2025

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

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

Back to the top