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
Teddy Walker is currently offline Teddy WalkerFriend
Messages: 18
Registered: July 2009
Junior Member
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
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Tue Jul 30 19:23:24 GMT 2024

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

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

Back to the top