Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » create new dynamicVariable in extention point
create new dynamicVariable in extention point [message #654038] Sun, 13 February 2011 12:12
Malte Brunnlieb is currently offline Malte BrunnliebFriend
Messages: 27
Registered: February 2011
Junior Member
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
Previous Topic:Parameter Question Want to set a Parameter to a String Variable
Next Topic:Eclipse and web development
Goto Forum:
  


Current Time: Fri Apr 26 22:21:25 GMT 2024

Powered by FUDForum. Page generated in 0.07894 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top