Hello,
i have a problem by deleop my plugin for eclipse.
i want to add an propertyPage only for files with the persistent property "TYPE".
I create a file programmatically and set the persistent property
file.setPersistentProperty(
new QualifiedName("", "TYPE"),
"Type1");
In my next Step i add a property page via the plugin.xml
<page
adaptable="true"
class="propPage.FilePropertyPage"
id="propPage.FilePropertyPage"
name="PropPage">
<enabledWhen>
<adapt
type="org.eclipse.core.resources.IResource">
<test
property="org.eclipse.core.resources.persistentProperty"
value="TYPE">
</test>
</adapt>
</enabledWhen>
</page>
The property value from the property TYPE is indifferent.
It doesnt work, but when i set persistent tester to:
<test
property="org.eclipse.core.resources.name"
value="*.jsp">
</test>
it works fine for JSP-Files. And when i want to get the persistent property TYPE with:
...file.getPersistentProperty ...
it works also fine.
Is it the wrong xml-config or is there another way to archieve the goal.
Thanks