Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » empty run menu visible after disabling all related actions
empty run menu visible after disabling all related actions [message #540884] Thu, 17 June 2010 14:24 Go to next message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
Hi,

I've used an activity that is always disabled in my product to make sure
that none of the available Run options is visible to the user. Unfortunately
this leaves an empty "Run" menu in the menu bar and so far I haven't found a
a way of removing it using the activity.

Did somebody else ever run into this and/or knows a solution (that doesn't
involve removing the menucontribution programmatically)?

Andreas
Re: empty run menu visible after disabling all related actions [message #541002 is a reply to message #540884] Fri, 18 June 2010 00:00 Go to previous messageGo to next message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
Check out the "org.eclipse.ui.perspectiveExtensions" extension point's
"hiddenMenuItem" element. Specify a perspective id (or * for all) and a
command id to hide that command's associated menu item in that
perspective. Use Menu Spy, ALT+SHIFT+F2 to find the command id.

Craig

On Thu, 17 Jun 2010 16:24:21 +0200, Andreas Pakulat wrote:

> Hi,
>
> I've used an activity that is always disabled in my product to make sure
> that none of the available Run options is visible to the user.
> Unfortunately this leaves an empty "Run" menu in the menu bar and so far
> I haven't found a a way of removing it using the activity.
>
> Did somebody else ever run into this and/or knows a solution (that
> doesn't involve removing the menucontribution programmatically)?
>
> Andreas
Re: empty run menu visible after disabling all related actions [message #541545 is a reply to message #541002] Mon, 21 June 2010 13:15 Go to previous message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
Craig Foote wrote:

> Check out the "org.eclipse.ui.perspectiveExtensions" extension point's
> "hiddenMenuItem" element. Specify a perspective id (or * for all) and a
> command id to hide that command's associated menu item in that
> perspective. Use Menu Spy, ALT+SHIFT+F2 to find the command id.

Well, the problem is that I can't seem to find any command that contributes
the entry "Run" in the menubar of Eclipse. The spy doesn't seem to work for
these menubar entries, only in submenus and using the menu-id I gathered
from org.eclipse.debug.ui/plugin.xml doesn't have any effect.

Andreas
Previous Topic:ActionDelegateHandlerProxy and isEnabled
Next Topic:API to create a plug-in programmatically
Goto Forum:
  


Current Time: Fri Apr 26 15:12:48 GMT 2024

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

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

Back to the top