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: 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

[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.

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


Paul Webster .platform.doc.isv/guide/workbench.htm

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

Current Time: Fri Jun 22 15:40:25 GMT 2018

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

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

Back to the top