Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324494

Summary: [e4] builds and team repositories views do not have popup menus
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: emoffatt, pwebster, remy.suen, shawn.minto
Version: unspecified   
Target Milestone: 3.5   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 321278, 336432    

Description Steffen Pingel CLA 2010-09-03 16:23:55 EDT
The popup menus in the viewers do not appear on right click.
Comment 1 Steffen Pingel CLA 2010-10-18 17:51:46 EDT
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?
Comment 2 Steffen Pingel CLA 2010-10-19 02:10:12 EDT
Might be related to bug 325390.
Comment 3 Steffen Pingel CLA 2010-12-16 06:49:07 EST
Seems to be fixed in 4.1M4.