Skip to main content


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 09:57 Go to next message
Heinrich Soebke is currently offline Heinrich SoebkeFriend
Messages: 3
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 10:01]

Report message to a moderator

Re: Retrieving Menu Contributions programmatically [message #538013 is a reply to message #537950] Fri, 04 June 2010 12:44 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
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: Thu Apr 25 06:10:38 GMT 2024

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

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

Back to the top