Definitions using <or/> [message #325424] |
Mon, 18 February 2008 10:12  |
Eclipse User |
|
|
|
Hello,
I've a definition:
<extension
point="org.eclipse.core.expressions.definitions">
<definition
id="com.kiki.ui.isRack">
<iterate>
<test
forcePluginActivation="false"
property="com.kiki.ui.tests.slas.handler.EXTRACK">
</test>
<or></or>
<test
forcePluginActivation="false"
property="com.kiki.ui.tests.slas.handler.RACK">
</test>
</iterate>
</definition>
</extension>
I've tests:
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="com.kiki.ui.tests.SlasHandlerTest"
id="com.kiki.ui.tests.slas.handler"
namespace="com.kiki.ui.tests.slas.handler"
properties="EXTRACK"
type="com.kiki.objects.slas.impl.SLASImpl">
</propertyTester>
<propertyTester
class="com.kiki.ui.tests.SlasHandlerTest"
id="com.kiki.ui.tests.slas.handler"
namespace="com.kiki.ui.tests.slas.handler"
properties="RACK"
type="com.kiki.objects.slas.impl.SLASImpl">
</propertyTester>
</extension>
I want a command to be visible wether its receiver (the object the
selection applies on) has the one OR the other property matching.
With my construction both tests gets performed. But since a receiver can
only be one or the other (RACK or EXTRACK) one test returns allways false
hence the command is not visible.
How can I implement a working "or" condition using the definitions?
|
|
|
|
Powered by
FUDForum. Page generated in 0.04921 seconds