Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Icons do not get replaced
Icons do not get replaced [message #1507080] Thu, 11 December 2014 09:54 Go to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
i'm trying to customize the launcher by adding my icons.
the problem is that the icons do not get replaced with my custom ones. (i do build with maven/tycho)

in my product i specify the ico file for windows:
index.php/fa/20202/0/
NOTE: in the beginning Eclipse showed me a small yellow triangle with the warning that resolution x was missing (this is fixed - as you see in the screenshot)

while building i get the following Error:
Error - 7 icon(s) not replaced in ...\launcher.exe using ...\AppIcon\ico\AppIcon.ico


beside that the launcher name is correct, and Eclipse does accept everything else but the icons

what am i doing wrong?
NOTE: i attached my AppIcon.ico
  • Attachment: Correct.png
    (Size: 3.16KB, Downloaded 6503 times)
  • Attachment: AppIcon.ico
    (Size: 286.01KB, Downloaded 1178 times)
Re: Icons do not get replaced [message #1507307 is a reply to message #1507080] Thu, 11 December 2014 14:03 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Does you .ico hold all required file sizes?

Tom

On 11.12.14 10:54, Ludwig Moser wrote:
> i'm trying to customize the launcher by adding my icons.
> the problem is that the icons do not get replaced with my custom ones. (i do build with maven/tycho)
>
> in my product i specify the ico file for windows:
>
> NOTE: in the beginning Eclipse showed me a small yellow triangle with the warning that resolution x was missing (this is fixed - as you see in the screenshot)
>
> while building i get the following Error:
> Error - 7 icon(s) not replaced in ...\launcher.exe using ...\AppIcon\ico\AppIcon.ico
>
> beside that the launcher name is correct, and Eclipse does accept everything else but the icons
>
> what am i doing wrong?
> NOTE: i attached my AppIcon.ico
>
Re: Icons do not get replaced [message #1507342 is a reply to message #1507307] Thu, 11 December 2014 14:40 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
i created the file with GIMP, where i got 7 Layers with resolutions 16(8&32bit), 32(8&32bit),48(8&32bit), 256(32bit) and exported it with the bit settings in brackets
when opening the file with IrfanView it tells me 7pages but all with 24BBP

[Updated on: Thu, 11 December 2014 14:40]

Report message to a moderator

Re: Icons do not get replaced [message #1507683 is a reply to message #1507342] Thu, 11 December 2014 21:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Have you compared that to the eclipse one? What information do you get
there?

Tom

On 11.12.14 15:40, Ludwig Moser wrote:
> i created the file with GIMP, where i got 7 Layers with resolutions
> 16(8&32bit), 32(8&32bit),48(8&32bit), 256(32bit) and exported it with
> the bit settings in brackets
> when opening the file with IrfanView it tells me 7pages but all with 24BBP
Re: Icons do not get replaced [message #1508206 is a reply to message #1507683] Fri, 12 December 2014 07:47 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
ok, i checked and it seems to be the same original icon shows same values as mine.

i downloaded the eclipse.ico [1] and set it as my custom icon.
then ran the build again.

Error - 7 icon(s) not replaced in ...\launcher.exe using ...\eclipse.ico

to me it seems its not about my icon... seems more like an general problem

i thought about specifying the seperate files, but as eclipse only supports BMP this is no option (no transparency)

[1] http://git.eclipse.org/c/equinox/rt.equinox.framework.git/plain/features/org.eclipse.equinox.executable.feature/library/win32/eclipse.ico

[Updated on: Fri, 12 December 2014 07:48]

Report message to a moderator

Re: Icons do not get replaced [message #1561708 is a reply to message #1508206] Tue, 13 January 2015 08:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Ok I checked our build to see how we do it.

The trick is fairly simple. I guess you exported previously directly
from your eclipse instance and your layout looked like this:

my.app
+ icons
+ AppIcon.ico
+ MyApp.product


and now you have

my.app
+ icons
+ AppIcon.ico

my.app.product
+ MyApp.product

and you had .product

> <win useIco="true">
> <ico path="/my.app/icons/AppIcon.ico"/>
> <bmp/>
> </win>

which is now causing the problem. To fix it you:
a) copy the icons/AppIcon.ico to my.app.product
b) modify the path in your product to be

> <win useIco="true">
> <ico path="icons/AppIcon.ico"/>
> <bmp/>
> </win>

Tom

On 12.12.14 08:47, Ludwig Moser wrote:
> ok, i checked and it seems to be the same original icon shows same
> values as mine.
>
> i downloaded the eclipse.ico [1] and set it as my custom icon.
> then ran the build again.
>
> Error - 7 icon(s) not replaced in ...\launcher.exe using ...\eclipse.ico
>
> i thought about specifying the seperate files, but as eclipse only
> supports BMP this is no option (no transparency)
>
> [1]
> http://git.eclipse.org/c/equinox/rt.equinox.framework.git/plain/features/org.eclipse.equinox.executable.feature/library/win32/eclipse.ico
>
Re: Icons do not get replaced [message #1561786 is a reply to message #1561708] Tue, 13 January 2015 09:45 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
changing from absolute path (starting with /bundlename)
to relative path as you suggested, did solve the problem!
thanks!
Re: Icons do not get replaced [message #1614516 is a reply to message #1561786] Fri, 13 February 2015 09:46 Go to previous message
Jerome Naylies is currently offline Jerome NayliesFriend
Messages: 1
Registered: February 2015
Junior Member
Hello

I integrate this thread because I have exactly the same problem with my project and the solution proposed by Tom does not work for me Sad

My project is organize like that:

my.app

my.app.product
   >icons
      >eclipse.ico
   >myApp.product


My product file contains:
   <launcher name="myApp">
      <solaris/>
      <win useIco="true">
         <ico path="icons/eclipse.ico"/>
         <bmp/>
      </win>
   </launcher>


I have downloaded the eclipse.ico file with the gitUb link indicated by Ludwig.

With this configuration, I do not have any error message at Tycho build but my application persist not to show eclipse icon:
index.php/fa/20836/0/

Thank you for your help.
Jay
  • Attachment: iconIssue.png
    (Size: 1.46KB, Downloaded 5928 times)
Previous Topic:Modifying an Eclipse extension point
Next Topic:Tycho unable to resolve dependency
Goto Forum:
  


Current Time: Fri Apr 19 23:50:21 GMT 2024

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

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

Back to the top