Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IMenuService not works with eclipse 4.2 (seems bug?)
IMenuService not works with eclipse 4.2 (seems bug?) [message #895455] Fri, 13 July 2012 05:43 Go to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

IMenuService menuService = (IMenuService) getSite().getService(IMenuService.class);
menuManager = new MenuManager();
menuService.populateContributionManager(menuManager, "popup:testview");
menuManager.createContextMenu(composite);
menuManager.update(true);
control.setMenu(menuManager.getMenu());


upper code let other plugins can contribute some menu items on specific control with "popup:testview" menu URI.

It works with eclipse 3.7 or below, not works with eclipse Juno

I investigated WorkbenchMenuService#populateContributionManager()
and, It's EMPTY!

/* (non-Javadoc)
 * @see org.eclipse.ui.menus.IMenuService#populateContributionManager(org.eclipse.jface.action.ContributionManager, java.lang.String)
 */
public void populateContributionManager(ContributionManager mgr, String location) {
	// TODO Auto-generated method stub

}


is there anyone can explain this?
Re: IMenuService not works with eclipse 4.2 (seems bug?) [message #895469 is a reply to message #895455] Fri, 13 July 2012 07:32 Go to previous messageGo to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

I found related bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=366528

[Updated on: Fri, 13 July 2012 07:33]

Report message to a moderator

Re: IMenuService not works with eclipse 4.2 (seems bug?) [message #895538 is a reply to message #895469] Fri, 13 July 2012 13:22 Go to previous message
John Steele is currently offline John SteeleFriend
Messages: 50
Registered: January 2010
Member
I had the similar situation the other week. I populate Form Section's toolbars via the IMenuService, and I could not get it to work either, but it works perfectly in 3.7.
Previous Topic:[Solved] View listen to combobox selection
Next Topic:Null Service Reference
Goto Forum:
  


Current Time: Fri Apr 26 16:13:35 GMT 2024

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

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

Back to the top