I am currently working on an Explorer for a Eclipse RCP plugin. Nodes in that explorer have a context menu in which the user can select a toggle box, choosing to set a boolean. This context menu comes from a plugin.xml. Both its initial and current state should depend on what setting the field has in the selected node. Sadly I was not able to find a way to make a variable dependent on a field of a selected node inside the plugin.xml. How do I do this?
I basically need a
<systemProperty
selectedNode.relevantField>
</systemProperty>
that I can put in my
<state
class="org.eclipse.ui.handlers.RegistryToggleState:
id>
</state>
Am I on a totally wrong track and attempt another way? I should