|Re: Can I use a command parameter in its handler's enabledWhen? [message #483780 is a reply to message #483732]
||Wed, 02 September 2009 22:59
|| Craig Foote
Registered: July 2009
Ok Paul, thanks for the reply.|
On Wed, 02 Sep 2009 14:29:49 -0400, Paul Webster wrote:
> in 3.x, a command is a global object and its the one that has the
> enabled state. Parameters (like the view id on showView) are passed in
> during an execute call, but are not available otherwise.
> Because of the command design and the use of the global application
> context, a command is enabled or disabled for the entire application.
> i.e. if you disabled the showView command, all of the menu items under
> Window>Show View would be disabled.
> In 4.0 we're investigating the notion of context sensitive queries
> (asking isActive, isEnabled, and isVisible from a specific view, for
> example) but that is such a change that it is not being considered in
Powered by FUDForum
. Page generated in 0.03357 seconds