Command appearing enabled when editPart not in focus [message #481177] |
Wed, 19 August 2009 20:17  |
Eclipse User |
|
|
|
I have a command that appears in a toolbar in an editor and has a handler
with the following conditions:
<handler class="TestHandler" commandId="test">
<activeWhen>
<with variable="activePartId">
<equals value="testEditor"/>
</with>
</activeWhen>
<enabledWhen>
<with variable="activePart">
<test property="test.editable"/>
</with>
</enabledWhen>
</handler>
When the editor is in a state so that test.editable is false, the command
icon is disabled as expected. But when the editor loses focus, the icon
appears to be enabled again (until you try clicking it, at which point the
editor regains focus and disables the icon).
Is this a bug in Eclipse, or am I doing something wrong here?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03873 seconds