Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Custom Project Nature image
Custom Project Nature image [message #901228] Fri, 10 August 2012 12:34 Go to next message
Mat Mathiew is currently offline Mat MathiewFriend
Messages: 29
Registered: July 2012
Junior Member
I have my own custom project and I have define my own project nature and
I want to add an icon to the project.

I added the following extension to plugin.xml:

<extension
      point="org.eclipse.ui.ide.projectNatureImages">
   <image
         icon="icons/myICON.ico"
         id="ui.projectnatureimage"
         natureId="customType.projectNature">
   </image>
</extension>


and it seems to work since the icon is correctly shown for my custom projects
but for some reason behind my icon on the left corner you can see whatever picture
I try to use a small red square(maybe showing that an icon is missing?).

Any idea why is this happening?


I am attaching a screenshot showing the problem:
index.php/fa/11137/0/
  • Attachment: prob.jpg
    (Size: 1.77KB, Downloaded 651 times)

[Updated on: Fri, 10 August 2012 12:35]

Report message to a moderator

Re: Custom Project Nature image [message #901313 is a reply to message #901228] Fri, 10 August 2012 17:28 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
It looks like there's a decorator image that's not being found. Are there any messages in your log?

Brian.
Re: Custom Project Nature image [message #901511 is a reply to message #901228] Mon, 13 August 2012 08:18 Go to previous message
Mat Mathiew is currently offline Mat MathiewFriend
Messages: 29
Registered: July 2012
Junior Member
I had no messages in the log and I didn't declare any decorators but I solved
the problem by declaring my own Custom Decorator and in the decorateImage method
I return the image I want without any decorator.

Thanks for pointing me in the right direction!
Previous Topic:class WorkspaceModifyOperation cannot be resolved
Next Topic:Eclipse RCP application fails when started from read-only folder
Goto Forum:
  


Current Time: Sat Apr 20 01:41:42 GMT 2024

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

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

Back to the top