| 
| Lightweight decorators and persistent properties [message #264698] | Fri, 30 July 2004 10:17 |  | 
| Eclipse User  |  |  |  |  | Originally posted by: kraemer.item.ntnu.no 
 I try to add decorators to IResource objects. I copied the example given
 in the example of the decorators extension point and it works for
 enablements like the following quite well:
 
 <enablement>
 <objectClass name="org.eclipse.core.resources.IResource"/>
 </enablement>
 
 Now I want to make the decorator dependent on the existence of a peristent
 property:
 
 <enablement>
 <objectState name="persistentProperty"
 value="com.example.plugin.property"/>
 </enablement>
 
 But that fails - no icons at all. The persistent value was added to the
 resource with
 
 QualifiedValue q = new QualifiedName("com.example.plugin", "property");
 signalFile.setPersistentProperty(q, "abc");
 
 What's wrong here?
 
 During the experiments i found out that the label decorators must actually
 be activated in the preference pages, and that qualified name is written
 with a ".", and not a ":". Any more things to pay attention to?
 
 Thanks in advance!
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.05591 seconds