Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Menu item visibleWhen a handler is active
Menu item visibleWhen a handler is active [message #331197] Wed, 27 August 2008 23:20 Go to next message
Eclipse UserFriend
I want to make menu items (added using the menus extension point)
visible when a handler for its command is active.
I saw in the wiki a plan for
<visibleWhen handler="true"/>
but this is not yet implemented, right?

Is there a simple trick to mimic this behavior?

Teddy
Re: Menu item visibleWhen a handler is active [message #331248 is a reply to message #331197] Thu, 28 August 2008 15:04 Go to previous message
Eclipse UserFriend
The best you can do in 3.4 is to use checkEnabled="true" with
visibleWhen. Your menu item will be visible when the command is enabled.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm
Previous Topic:Bug? closing doesn't save the state of inactive perspective correctly?
Next Topic:Which Adapters available?
Goto Forum:
  


Current Time: Sun Feb 16 14:49:16 GMT 2025

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

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

Back to the top