How to use org.eclipse.ui.decorators location=REPLACE? [message #673823] |
Tue, 24 May 2011 20:48 |
|
Hi,
I am trying to have a decorator that replaces the icon used in the package explorer, but it doesn't seem to work. Below is what I have in my plugin.xml and I am using Eclipse 3.6.1. If I change the location to anything besides REPLACE it works just fine, but with REPLACE it seems to do nothing. Do I somehow need to enable replace with the IDecoration.ENABLE_REPLACE?
Thanks in advance for any help!
<extension
point="org.eclipse.ui.decorators">
<decorator
icon="icons/myDecoration.png"
id="myDecorator"
label="My Decoration"
lightweight="true"
location="REPLACE"
state="true">
<enablement>
<and>
<objectClass
name="org.eclipse.core.resources.IResource">
</objectClass>
<objectState
name="extension"
value="myFileExtension">
</objectState>
</and>
</enablement>
<description>
Decorator for my files.
</description>
</decorator>
</extension>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02629 seconds