changing visibility of a command [message #1734999] |
Tue, 14 June 2016 14:16 |
Jann Schneider Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Hi
i have a command to open an editor i've implemented. If the editor is already open i want to hide this command. So i added a visibleWhen block checking the type of the active editor. This works very nice except the situation if no editor is open at all. Currently i'm using this:
<visibleWhen
checkEnabled="false">
<with
variable="activeEditor">
<not>
<instanceof
value="<my editor type>">
</instanceof>
</not>
</with>
</visibleWhen>
Well if checking e.g. the current selection you can use isEmpty="true" or something like that. But i cannot find a solution to show the command if no editor is open at all.
Any pointers would be apriciated!
Thanks, Jann
|
|
|
Powered by
FUDForum. Page generated in 0.03141 seconds