Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to use org.eclipse.ui.decorators location=REPLACE?(Need help using org.eclipse.ui.decorators location=REPLACE option)
icon5.gif  How to use org.eclipse.ui.decorators location=REPLACE? [message #673823] Tue, 24 May 2011 20:48 Go to next message
Daniel Johnson is currently offline Daniel JohnsonFriend
Messages: 6
Registered: September 2010
Location: Seattle, WA
Junior Member

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>
Re: How to use org.eclipse.ui.decorators location=REPLACE? [message #714953 is a reply to message #673823] Thu, 11 August 2011 21:37 Go to previous messageGo to next message
Walt Boring is currently offline Walt BoringFriend
Messages: 1
Registered: August 2011
Junior Member
I get the same thing using Eclipse 3.6. Any updates on this?
Re: How to use org.eclipse.ui.decorators location=REPLACE? [message #720457 is a reply to message #714953] Tue, 30 August 2011 15:57 Go to previous message
Daniel Johnson is currently offline Daniel JohnsonFriend
Messages: 6
Registered: September 2010
Location: Seattle, WA
Junior Member

Sorry but I still have not found the solution, and have yet to update to see if it is fixed in 3.7.
Previous Topic:Compatability issues with Indigo release
Next Topic:eclipse.exe and exclipse.ini not generated when exporting product
Goto Forum:
  


Current Time: Sat Apr 27 00:12:17 GMT 2024

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

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

Back to the top