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 "Run" actionset from menu?
how to remove the "Run" actionset from menu? [message #502978] Thu, 10 December 2009 14:05 Go to next message
No real name is currently offline No real nameFriend
Messages: 14
Registered: October 2009
Junior Member
Hi,
I have a problem linked to the menus of my RCP application.
I've seen that by default both "Run" and "Search" items are visible.
Is it possible to hide them?

Overriding the WorkbenchWindowAdvisor's postWindowCreate method I succeded to hide the "Search" using this instruction:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().hideActionSet( "org.eclipse.search.searchActionSet");

I tried the following for the "Run":
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().hideActionSet( "org.eclipse.debug.ui.launchActionSet");
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().hideActionSet( "org.eclipse.debug.ui.debugActionSet");

... but it still stay there, even if its sub-menus are empty.

Any advice?

Thanks,

Le
Re: how to remove the "Run" actionset from menu? [message #503019 is a reply to message #502978] Thu, 10 December 2009 15:25 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 72
Registered: July 2009
Member
> I have a problem linked to the menus of my RCP application.
> I've seen that by default both "Run" and "Search" items are visible.
> Is it possible to hide them?

It shouldn't be neccessary to explicitly hide them. In a plain RCP application
these items are not included. Check that you only have RCP plug-ins (not
something like org.eclipse.ui.ide) in your run configuration and clear the
Configuration Area (sometimes these menu contributions are cached and stick to
the perspective even if the bundles are already gone). I'd recommend to use a
target platform containing only the Eclipse RCP SDK, then this cannot happen to
you at all.

--
http://www.ralfebert.de/blog/eclipsercp/
Re: how to remove the "Run" actionset from menu? [message #503198 is a reply to message #503019] Fri, 11 December 2009 05:59 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 14
Registered: October 2009
Junior Member
Thank you!
I solved using a target platform.
Now both Run and Search are no more visible.
Re: how to remove the "Run" actionset from menu? [message #536137 is a reply to message #503198] Thu, 27 May 2010 08:41 Go to previous message
Parvez Ahmad Ahmad is currently offline Parvez Ahmad AhmadFriend
Messages: 31
Registered: May 2010
Member
I was playing with extensions in plugin.xml but no way How did you removed the Search and Run menu. Where to target platform.

Parvez Ahmad Hakim
Srinagar Kashmir India
Previous Topic:runtime jar loading
Next Topic:[Mac]How to enable Mac Help(Accelerate Key: Command+Shift+?) in RCP based application
Goto Forum:
  


Current Time: Fri Mar 29 12:55:05 GMT 2024

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

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

Back to the top