Community
Participate
Working Groups
The popup menus in the viewers do not appear on right click.
Here is what the code looks like. When the view is created the popup menu is registered and a number of separators are added: protected void createPopupMenu(Composite parent) { MenuManager menuManager = new MenuManager(); menuManager.add(new GroupMarker("group.open")); menuManager.add(new Separator("group.edit")); menuManager.add(new Separator("group.file")); menuManager.add(new Separator("group.run")); menuManager.add(new Separator("group.refresh")); menuManager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); menuManager.add(new Separator(BuildsUiConstants.GROUP_PROPERTIES)); Menu contextMenu = menuManager.createContextMenu(parent); viewer.getTree().setMenu(contextMenu); getSite().registerContextMenu(menuManager, viewer); } In the plugin.xml commands are registered: <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="popup:org.eclipse.mylyn.builds.navigator.builds?after=group.run"> <command commandId="org.eclipse.mylyn.builds.ui.command.RunBuild" label="Run Build" style="push"> </command> </menuContribution> </extension> This "Run Build" menu item shows on Eclipse 3.x but not on e4 (I20100922-0843). If I remove "?after=group.run" from the extensions the item shows on e4 as well so somehow the groups get lost from the menu. Shawn has reported that it always works on Windows. Eric, do you have any thoughts what could be causing this?
Might be related to bug 325390.
Seems to be fixed in 4.1M4.