Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [commands] menu contribution visible when command is handled
[commands] menu contribution visible when command is handled [message #482449] Wed, 26 August 2009 11:12
Will Horn is currently offline Will Horn
Messages: 265
Registered: July 2009
Senior Member
A command menu contribution "visibleWhen" element has a "checkEnabled"
attribute that lets the visibility of the command be tied to its enablement.

In the Eclipse User Interface Guidelines
( http://wiki.eclipse.org/User_Interface_Guidelines#Context_Me nus_2 Guideline
7.15), it is best to have a consistent set of context menu items that are
enabled and disabled instead of a dynamic set of enabled items.

To me this would be easiest to do if the menu visibileWhen additionally had
a checkHandled. Does that make sense? Should I create an enhancement
request? Or is there a superior way to do this?

Thanks,
Will
Previous Topic:how to get all the types avaiable in my eclipse Workspace
Next Topic:Help Corrupted
Goto Forum:
  


Current Time: Wed Aug 20 06:45:32 EDT 2014

Powered by FUDForum. Page generated in 0.09706 seconds