|
Re: removing "Run As", "Debug As" ... popup menu items [message #405692 is a reply to message #405688] |
Sun, 03 December 2006 12:17 |
Ed Merks Messages: 32985 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------050307040001060805010201
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
John,
This registration with the site in the generated editor introduces those
menu items:
protected void createContextMenuFor(StructuredViewer viewer)
{
MenuManager contextMenu = new MenuManager("#PopUp");
contextMenu.add(new Separator("additions"));
contextMenu.setRemoveAllWhenShown(true);
contextMenu.addMenuListener(this);
Menu menu= contextMenu.createContextMenu(viewer.getControl());
viewer.getControl().setMenu(menu);
* getSite().registerContextMenu(contextMenu, viewer);*
John Yotka wrote:
> How can I remove the "Run As", "Debug As", "Team", "Compare With" and
> "Replace With" popup menu items from my editor. These are the items
> that are added by the addEditorActions(mgr) call in menuAboutToShow
> (PopupMenuExtender).
--------------050307040001060805010201
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
John,<br>
<br>
This registration with the site in the generated editor introduces
those menu items:<br>
<blockquote><small> protected void
createContextMenuFor(StructuredViewer viewer)</small><br>
<small> {</small><br>
<small> MenuManager contextMenu = new MenuManager("#PopUp");</small><br>
<small> contextMenu.add(new Separator("additions"));</small><br>
<small> contextMenu.setRemoveAllWhenShown(true);</small><br>
<small> contextMenu.addMenuListener(this);</small><br>
<small> Menu menu=
contextMenu.createContextMenu(viewer.getControl());</small> <br>
<small> viewer.getControl().setMenu(menu);</small><br>
<small> <b> getSite().registerContextMenu(contextMenu, viewer);</b></small><br>
</blockquote>
<br>
John Yotka wrote:
<blockquote cite="mideksf6r$3tq$1@utils.eclipse.org" type="cite">How
can I remove the "Run As", "Debug As", "Team", "Compare With" and
"Replace With" popup menu items from my editor. These are the items
that are added by the addEditorActions(mgr) call in menuAboutToShow
(PopupMenuExtender).
<br>
</blockquote>
<br>
</body>
</html>
--------------050307040001060805010201--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.01381 seconds