Bug 167817 - Context Menu of Cross Reference View should have standard extension group
Summary: Context Menu of Cross Reference View should have standard extension group
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.5   Edit
Assignee: Matt Chapman CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-13 04:56 EST by Christian Dupuis CLA
Modified: 2006-12-13 07:44 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Dupuis CLA 2006-12-13 04:56:12 EST
The Context Menu of the Cross Reference View should have Eclise' standard group for extension. So that other plugins can contribute an Action at a specific location in the Context Menu:

The following code is taken from XReferenceView:

// context menu
MenuManager mgr = new MenuManager();
mgr.add(copyAction);
mgr.add(selectAllAction);
Menu menu = mgr.createContextMenu(viewer.getControl());
viewer.getControl().setMenu(menu);
getSite().registerContextMenu(mgr, viewer);

The above code should be changed to 

// context menu
MenuManager mgr = new MenuManager();
mgr.add(copyAction);
mgr.add(selectAllAction);
// add the standard extension group
mgr.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
Menu menu = mgr.createContextMenu(viewer.getControl());
viewer.getControl().setMenu(menu);
getSite().registerContextMenu(mgr, viewer);
Comment 1 Matt Chapman CLA 2006-12-13 06:15:54 EST
I like the easy ones :)
Comment 2 Matt Chapman CLA 2006-12-13 07:44:56 EST
Fixed in 1.5.0.200612130636 for Eclipse 3.3M3 (build.88)