Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Lightweight decorators and persistent properties
Lightweight decorators and persistent properties [message #264698] Fri, 30 July 2004 10:17
Eclipse UserFriend
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!
Previous Topic:How to propagate preferences changes to all plugin editors (open and closed)
Next Topic:RCP application in RTL mode bugs ?
Goto Forum:
  


Current Time: Thu May 01 15:36:24 EDT 2025

Powered by FUDForum. Page generated in 0.02396 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top