Hi everyone,
at the moment i am developing an eclipse plugin. Everything works fine and google has done its job very fine - till now!
Here is my big problem:
In order to to enable my self written handler via the enabledWhen Node of the extention point I need a new dynamic variable to prove an internal value.
Therefore I added the org.eclipse.core.variables.dynamicVariables extention point:
<extension
point="org.eclipse.core.variables.dynamicVariables">
<variable
description="revert variable for DetailView"
name="REVERTABLE"
resolver="de.tukl.cs.softech.agilereview.views.detail.handlers.VariableResolver"
supportsArgument="false">
</variable>
</extension>
The named resolver implements the IDynamicVariableResolver interface. To test this implementation I added some sysouts to the resolveValue function.
Now I want to enable the handler dependend on the value of the new introduced variable REVERTABLE:
<handler
class="de.tukl.cs.softech.agilereview.views.detail.handlers.RevertHandler"
commandId="de.tukl.cs.softech.agilereview.views.detail.revert">
<enabledWhen>
<resolve
variable="REVERTABLE">
<equals
value="true">
</equals>
</resolve>
</enabledWhen>
<activeWhen>
...
</activeWhen>
</handler>
The big problem is now that the resolveValue function of the IDynamicVariableResolver is never been called... but why???
What did I do wrong?
Thanks for Help,
Greetings, Malte