org.eclipse.ui.handlers - enableWhen - selection count [message #327545] |
Thu, 24 April 2008 05:21  |
Eclipse User |
|
|
|
Hello,
I've a command that only effects to a group of items (delete all). I want
that command to be only enabled if the current selection is greater 1.
My current definition is:
<handler
class="de.kohnert.ui.actions.RefuseAllSamplesAction"
commandId="de.kohnert.ui.actions.refuseAllSamplesAction">
<enabledWhen>
<and>
<reference
definitionId="de.kohnert.ui.isSample">
</reference>
<reference
definitionId="de.kohnert.ui.hasOpenRackEditor">
</reference>
<count
value="2">
</count>
</and>
</enabledWhen>
</handler>
My problem is, that I do not know what to write into count. The current
definition enables only if exactly two objects are selected.
How can I define a "greater than" clause?
Thanks!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03614 seconds