|
Re: Prevent "Quick Access" field from displaying commands [message #1749592 is a reply to message #1749562] |
Thu, 08 December 2016 13:16 |
Denis Aristov Messages: 15 Registered: March 2013 Location: Moscow |
Junior Member |
|
|
I think I've found a solution. The command should delegate the job to its handler. This can be achieved by moving everything from command's <visibleWhen> to handler's <activeWhen>.
For example:
<command commandId="a"
<visibleWhen
checkEnabled="true"> This attribute value delegates all the tests to the handler
</visibleWhen>
</command>
...
<handler>
...
<activeWhen checkEnabled="false">
<with variable="selection">
<and>
<iterate ifEmpty="false" operator="or">
<instanceof
value="java.lang.String">
</instanceof>
</iterate>
<test
property="somePropertyTester.CONNECTED_TO_RIGHT_DB">
</test>
</and>
</with>
</activeWhen>
...
</handler>
[Updated on: Thu, 08 December 2016 13:18] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.25242 seconds