Removing default context menu edit part actions [message #241649] |
Tue, 26 February 2008 20:43 |
Andy Emmett Messages: 9 Registered: July 2009 |
Junior Member |
|
|
Does anyone have an example or is able to explain, how to create a context
menu for an EditPart that can contain user defined object contributions (I
know how to do this part), but without the default SubMenu additions ...
Run As
Debug As
Profile As
Analysis
Team
Compare With
Replace With
It seems that these get added along with my object contributions whenever
registerContextMenu is called. Without this call, I cannot get my object
contributions added for the EditPart to display at all.
ContextMenuProvider menuManagerProvider = new MyMenuProvider(viewer);
viewer.setContextMenu(menuManagerProvider);
getSite().registerContextMenu(menuManagerProvider, viewer);
Can anyone help ?
Thanks in advance
|
|
|
Powered by
FUDForum. Page generated in 0.02535 seconds