Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to remove the unwanted "Run as/Debug as" from context menu
How to remove the unwanted "Run as/Debug as" from context menu [message #632528] Wed, 13 October 2010 10:25 Go to next message
Li Junhong is currently offline Li JunhongFriend
Messages: 1012
Registered: July 2009
Senior Member
Hi all,

I have a view created by my own, based on Common Navigator Framework.

But when I right click on the elements in this view, there are some unwanted menus, such as "Run as/Debug as". How to get rid of them without removing jdt plugins?

I found that some guys discussed this before, but no good solutions. Can anyone help me out.

I read the post replied by Paul Webster, he said that "you want to remove them from the context menu of what? Package Explorer? Project Explorer? Java Editor? Your own views and/or editors? it may be difficult". Does it means that if the view is created by my own, it will be easier?

Paul, could you explain a bit more at your convenient time? Thanks!

------------------------------
Calvin
Re: How to remove the unwanted "Run as/Debug as" from context menu [message #633573 is a reply to message #632528] Mon, 18 October 2010 12:49 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

If you control the view, then you don't have to register the context
menu and (hopefully) the menus won't be there.

If you are just customizing the CommonNavigatorFramework then you are
stuck with the contributions it picks up.

You can try to remove them with the activities/capabilities,
<plugin.id>/<action.id> works against most actionSets and
objectContributions.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: How to remove the unwanted "Run as/Debug as" from context menu [message #639781 is a reply to message #633573] Wed, 17 November 2010 18:17 Go to previous message
No real name is currently offline No real nameFriend
Messages: 1
Registered: November 2010
Junior Member
Where exactly in the the CommonNavigatorFramework are these contributions being picked up?

-Doug
Previous Topic:Expression definition test
Next Topic:Common Navigator Framework and LinkHelper
Goto Forum:
  


Current Time: Wed Apr 24 13:34:13 GMT 2024

Powered by FUDForum. Page generated in 0.03010 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top