Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Custom Project Nature image
Custom Project Nature image [message #901228] Fri, 10 August 2012 08:34 Go to next message
Eclipse UserFriend
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 712 times)

[Updated on: Fri, 10 August 2012 08:35] by Moderator

Re: Custom Project Nature image [message #901313 is a reply to message #901228] Fri, 10 August 2012 13:28 Go to previous messageGo to next message
Eclipse UserFriend
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 04:18 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 17:31:41 EDT 2025

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

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

Back to the top