|Handlers enabledWhen based on String in View [message #663689]
||Wed, 06 April 2011 04:17
| Ricky de Klerck
Registered: January 2011
I have defined all my commands in the ui.commands extension and i want to retrieve all the commands programmatically. I know there is something like the commandManager.getAllCommands(), but this doesn't return anything.
I need all this because I want to enable/disable all listed commands in a category at the same time...
Hope someone can help me out.
Okay, I think i'm going in the wrong direction here. I guess what I should do is add an enabledWhen for my Handlers where I check the last executed command. I can set the id of this command in my view. Is it possible or should it be done in another way?
I have one perspective with a toolbar with a couple of commands. When executing a command, a filter is set on a tree of a view. I want to user to see which filter is set by changing the images. So one image is pressed and the rest is normal....
[Updated on: Wed, 06 April 2011 05:52]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01761 seconds