Is there a way to create conditions (similar to if/else blocks) in the Eclipse plugin.xml's files.
I'm creating a Eclipse plugins in which I need to set a different value depending on the project facet, I'm getting the project facet using:
<with variable="projectFacet">
<test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="projectFacet" forcePluginActivation="true"/>
</with>
And then I have this code:
<item
label="test"
visible="false"
id="test.test1"
category="category1"
description="test description">
</item>
At this momment I'm hardcoding "category1"
, what I need is to select the correct category depending on the variable I got before, for example:
- facet1 should be on the category1
- facet2 should be on the category2
Someone knows how to do that? Thanks.