Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to Specify Launcher Icons for Product
How to Specify Launcher Icons for Product [message #442423] Mon, 16 January 2006 22:23 Go to next message
Kenneth Evans, Jr. is currently offline Kenneth Evans, Jr.Friend
Messages: 77
Registered: July 2009
Member
When the Eclispe Product Export Wizard exports an RCP product (on Windows),
it makes a .exe file. The icon associated with the .exe is an Eclipse icon
(as displayed in Explorer, for example).

On the Branding tab of the Product Configuration Editor, there are entries
for customizing the launcher icons. I have tried both a .ico file and
separate .bmp files. They don't appear to change the icon on the .exe.

So the question is how do you change the icon, and what do the icons
specified on the Branding tab do?

Note that these are different from the Window Images, specified on the same
tab. The images specified there appear in the upper left of the title bar
and in other places (like with Alt-Tab to change windows).

Thanks,

-Ken
Re: How to Specify Launcher Icons for Product [message #442461 is a reply to message #442423] Tue, 17 January 2006 15:09 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Kenneth Evans wrote:
> When the Eclispe Product Export Wizard exports an RCP product (on Windows),
> it makes a .exe file. The icon associated with the .exe is an Eclipse icon
> (as displayed in Explorer, for example).
>
> On the Branding tab of the Product Configuration Editor, there are entries
> for customizing the launcher icons. I have tried both a .ico file and
> separate .bmp files. They don't appear to change the icon on the .exe.
>
> So the question is how do you change the icon, and what do the icons
> specified on the Branding tab do?
>
> Note that these are different from the Window Images, specified on the same
> tab. The images specified there appear in the upper left of the title bar
> and in other places (like with Alt-Tab to change windows).

For Windows you need a "combined" .ico file, which contains multiple
icons in different resolutions. Windows XP has one added further
resolution, read

http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/dnwxp/html/winxpicons.asp

to understand the problem. There exist not many free tools to create
such a combined .ico file, I used IconoMaker

http://www.snapfiles.com/get/iconomaker.html

to realize this task.

Greetings from Bremen,

Daniel Krügler
Re: How to Specify Launcher Icons for Product [message #442599 is a reply to message #442461] Tue, 17 January 2006 19:35 Go to previous messageGo to next message
Kenneth Evans, Jr. is currently offline Kenneth Evans, Jr.Friend
Messages: 77
Registered: July 2009
Member
Daniel,

Thanks for your reply. The Microsoft link to icon information was very
interesting.

However, that is not the problem. I know how to make .ico files, and
have been doing so for years. I usually use Visual Studio. The tab in the
product editor indicates you can use either .bmp files *or* a .ico file for
win32. I have tried both. Neither changes the icon next to the .exe file
in Explorer. Neither seems to override the "Window Images" I specified,
either. These latter do appear on the Title Bar and as a result of Alt-Tab,
for example, and replace the Eclipse icons you get if you don't do that.
(They are .gif images.) Nothing so far replaces the icon next to the .exe
file as seen in Explorer. Thus, if you make 10 RCP applications, they will
all have the same icon on the .exe file. Normally people distinguish
executables with individual icons.

In fact I have discovered this .exe file is really exactly the same
file as eclipse.exe, the same one that runs Eclipse. It just has the name
you specify in the branding. There is only one icon resource in that file,
the Eclipse one, so it is hard to see how it could be changed in any event.

So the question remains what is "Customizing the launcher icons" in the
Product Editor supposed to do. Do you do that in place of specifying "Window
Images"? The documentation in Help is very limited and doesn't say.

Thanks,

-Ken
Re: How to Specify Launcher Icons for Product [message #442600 is a reply to message #442599] Tue, 17 January 2006 19:53 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Kenneth Evans wrote:

> In fact I have discovered this .exe file is really exactly the same
> file as eclipse.exe, the same one that runs Eclipse. It just has the name
> you specify in the branding. There is only one icon resource in that file,
> the Eclipse one, so it is hard to see how it could be changed in any event.
>
> So the question remains what is "Customizing the launcher icons" in the
> Product Editor supposed to do. Do you do that in place of specifying "Window
> Images"? The documentation in Help is very limited and doesn't say.

I found somewhere in google/documentation that you should compile
launcher (eclipse.exe) yourself. Eclipse has its source. So, just
replace icon and recompile.

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)


Konstantin Scheglov,
Google, Inc.
Re: How to Specify Launcher Icons for Product [message #442617 is a reply to message #442599] Wed, 18 January 2006 08:40 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Kenneth Evans wrote:
> Daniel,
>
> Thanks for your reply. The Microsoft link to icon information was very
> interesting.
>
> However, that is not the problem. I know how to make .ico files, and
> have been doing so for years. I usually use Visual Studio. The tab in the
> product editor indicates you can use either .bmp files *or* a .ico file for
> win32. I have tried both. Neither changes the icon next to the .exe file
> in Explorer. Neither seems to override the "Window Images" I specified,
> either. These latter do appear on the Title Bar and as a result of Alt-Tab,
> for example, and replace the Eclipse icons you get if you don't do that.
> (They are .gif images.) Nothing so far replaces the icon next to the .exe
> file as seen in Explorer. Thus, if you make 10 RCP applications, they will
> all have the same icon on the .exe file. Normally people distinguish
> executables with individual icons.
>
> In fact I have discovered this .exe file is really exactly the same
> file as eclipse.exe, the same one that runs Eclipse. It just has the name
> you specify in the branding. There is only one icon resource in that file,
> the Eclipse one, so it is hard to see how it could be changed in any event.
>
> So the question remains what is "Customizing the launcher icons" in the
> Product Editor supposed to do. Do you do that in place of specifying "Window
> Images"? The documentation in Help is very limited and doesn't say.

Which Eclipse version are you using? To my opinion the Visual Studio
icon editor is not able to create the required layered .ico for Windows
XP, so I switched to IconoMaker. I can definitely affirm, that my
Eclipse 3.1.1 export does create a properly named executable which
contains the .ico file and does properly present that in any reasonable
file explorer (even Windows Explorer ;-)). I can't tell you anything
corresponding a .bmp file, I don't think that that should work. I assume
that these .bmp files are converted into .ico files but since you need
**nine** icons in one .ico for Win XP, these six entries in the product
editor cannot be sufficient.

You should also ensure, that your Eclipse export is set to your own
..product file and maybe you have to activate synchronization during
that process.

Hope that helps,

Daniel Krügler
Re: How to Specify Launcher Icons for Product [message #442734 is a reply to message #442617] Wed, 18 January 2006 23:56 Go to previous messageGo to next message
Kenneth Evans, Jr. is currently offline Kenneth Evans, Jr.Friend
Messages: 77
Registered: July 2009
Member
Daniel,

My .ico files do not have all the "levels" filled in. I have never had to do
that for any C program. I , in fact, used an existing one from a working C
program, to see what would happen. I will try to make some more levels when
I get a chance.

>> can't tell you anything corresponding a .bmp file, I don't think that
that should work

Well, if you look at the Product Editor, Branding Tab, there is "Customizing
launcher icons varies per platform" item. That is where I specified the
..ico file and the .bmp files for win32. There is a radio button to "Use a
single ICO file". I assume that switches between BMP and ICO. If you look
at the text version, you can see what the equivalent XML is. (I am using
3.1.1, the same as you are.) I also didn't specify all the possible BMP
values.

I am pretty sure it is synchronized. I've rebuilt, run, and exported it
several times.

Some documentation wouldn't hurt.

Thanks,

-Ken
Re: How to Specify Launcher Icons for Product [message #442742 is a reply to message #442734] Thu, 19 January 2006 07:53 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Kenneth Evans wrote:
> Daniel,
>
> My .ico files do not have all the "levels" filled in. I have never had to do
> that for any C program. I , in fact, used an existing one from a working C
> program, to see what would happen. I will try to make some more levels when
> I get a chance.
>
>
>>> can't tell you anything corresponding a .bmp file, I don't think that
>
> that should work
>
> Well, if you look at the Product Editor, Branding Tab, there is "Customizing
> launcher icons varies per platform" item. That is where I specified the
> .ico file and the .bmp files for win32. There is a radio button to "Use a
> single ICO file". I assume that switches between BMP and ICO. If you look
> at the text version, you can see what the equivalent XML is. (I am using
> 3.1.1, the same as you are.) I also didn't specify all the possible BMP
> values.
>
> I am pretty sure it is synchronized. I've rebuilt, run, and exported it
> several times.
>
> Some documentation wouldn't hurt.

That is true, as well as your statement, that in principle its not
necessary to provide all possible levels of the .ico file. But as far as
I remember these icon layers where needed at least for Eclipse 3.1 to
guarantee a successful Eclipse export process which ends with a
properly named executable with properly integrated ico file on XP ;-)

Please feel free to disprove this assertion. And yes: I have chosen the
mentioned settings in my Eclipse 3.1.1, which leads to

<launcher name="MyExeName">
<solaris/>
<win useIco="true">
<ico path="/myclient.ui/icons/MyIconName.ico"/>
<bmp/>
</win>
</launcher>

in the .product file (Btw.: I don't understand, why the product editor
does not have tab similar to the plugin editor which allows editing the
raw xml structure). Don't ask me why the line

<solaris/>

exists, the file works, if it is removed.

HTH,

Daniel
Re: How to Specify Launcher Icons for Product [message #442960 is a reply to message #442423] Sat, 21 January 2006 01:08 Go to previous messageGo to next message
Wassim Melhem is currently offline Wassim MelhemFriend
Messages: 28
Registered: July 2009
Junior Member
Could this be the problem?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=102259
Re: How to Specify Launcher Icons for Product [message #442962 is a reply to message #442734] Sat, 21 January 2006 01:45 Go to previous messageGo to next message
Ian Leslie is currently offline Ian LeslieFriend
Messages: 137
Registered: July 2009
Senior Member
I just ran into this too - and figured it out after much experimenting.
It turns out I was not replacing all the images in the launcher and it
just so happens that one of the ones I did not replace was the one XP was
using to display my product in the File Explorer so I thought it was doing
nothing.

Check out my trail of discovery:

http://www.eclipse.org/newsportal/article.php?id=50172&g roup=eclipse.platform#50172

hope that helps,

Ian

PS. There is no need to compile your own launcher any more (unless you
want to change default behavior - like JRE lookup rules for example).

PPS. Visual studio can handle multiple image icons I've used it for years.
In fact opening the eclipse.exe in .net was the way I found out what was
really going on.

PPPS. I logged two bugs so hopefully 3.2 can be made better in this
regard.
Re: How to Specify Launcher Icons for Product [message #442980 is a reply to message #442734] Sat, 21 January 2006 23:12 Go to previous messageGo to next message
Kenneth Evans, Jr. is currently offline Kenneth Evans, Jr.Friend
Messages: 77
Registered: July 2009
Member
OK, I [also] captured the Eclipse .ico in the exported .exe file with
IconJack32 (PC Magazine Utility) then opened it in Visual Studio. It has 7
images (16x16-256, 16x16-XP, 24x24-256, 32x32-256, 32x32-XP, 48x48-256, and
48x48-XP) for me. Visual Studio says the XP type is 32-bit and cannot be
edited in Visual Studio. (I did all this before reading Ian's message.)

I changed the ones I could and saved it with a new name,
Eclipse.rcp.new.ico. On export I did not see my changes in Explorer. I
also assumed the one it was using might not be one of the ones I changed, so
I captured it again and it is the original one, not the one I specified.

It looks to me as if Eclipse just copies the exported .exe file. (Mine are
all alike.) It would be a lot more work to rebuild it, as would be
necessary to change the icon. I am skeptical they do that. In any event
this whole thing is frustrating.

This is from the text version of the .product file:

<launcher name="JProbe SWT RCP">
<solaris/>
<win useIco="true">
<ico path="/JProbe SWT RCP/icons/Eclipse.rcp.new.ico"/>
<bmp
winSmallHigh="/JProbe SWT RCP/icons/xrays16-256.bmp"
winSmallLow="/JProbe SWT RCP/icons/xrays16-16.bmp"
winMediumHigh="/JProbe SWT RCP/icons/xrays32-256.bmp"
winMediumLow="/JProbe SWT RCP/icons/xrays32-16.bmp"
winLargeHigh="/JProbe SWT RCP/icons/xrays48-256.bmp"
winLargeLow="/JProbe SWT RCP/icons/xrays48-16.bmp"/>
</win>
</launcher>

As you can see, I also made the required .bmp files, and they did not work
either, (when useIco was false). Note that there are 6 (not 7) of them and
none is supposed to be 32-bit (or 24x24).

I also have the solaris markup though I do not have Eclipse installed on
Solaris, yet..

I have not tried IconoMaker, yet. There are only so many hours in the day.
I really don't expect it to work, in spite of Daniel's experience. I could
be doing something else wrong, but I don't see what. My .product file
excerpt is above, and I don't get any warnings.

Finally, I have been making icons for programs for years. I usually do
16x16 and 32x32 and feel this is adequate. Windows expands the 32x32 if it
needs 48x48 (I can't remember when it does). No one uses 16-bit color these
days. It should not be required to have all the images (we don't even know
how many are required), and the documentation needs to be improved, if not
the implementation. (But the price is right. ;-)

Thanks to all of you for all the info,

-Ken
Re: How to Specify Launcher Icons for Product [message #442981 is a reply to message #442960] Sat, 21 January 2006 23:34 Go to previous messageGo to next message
Kenneth Evans, Jr. is currently offline Kenneth Evans, Jr.Friend
Messages: 77
Registered: July 2009
Member
Wassim,

It says the icon is not used if the product is not renamed. I do
rename it, and it doesn't change. See the post above for more details on
how I determined this.

Thanks,

-Ken

"Wassim Melhem" <wassimm@ibm.canada> wrote in message
news:895afd9f90743b039de827209b0df9f0$1@www.eclipse.org...
> Could this be the problem?
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=102259
>
Re: How to Specify Launcher Icons for Product [message #442983 is a reply to message #442981] Sat, 21 January 2006 23:56 Go to previous messageGo to next message
Wassim Melhem is currently offline Wassim MelhemFriend
Messages: 28
Registered: July 2009
Junior Member
Ken, can you please check the requirements listed in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=118811#c5

If your ICO file complies and still doesn't work, please attach it to said
bug report.

Thanks,
Wassim.
Re: How to Specify Launcher Icons for Product [message #443072 is a reply to message #442983] Sun, 22 January 2006 22:58 Go to previous messageGo to next message
Ian Leslie is currently offline Ian LeslieFriend
Messages: 137
Registered: July 2009
Senior Member
My guess is the key are the 16.7 million colour versions. XP prefers to
use those and if Visual Studio 6 cannot edit them that would explain why
things are working for me (using .Net) and not for you (using VS 6).

Ian
Re: How to Specify Launcher Icons for Product [message #443269 is a reply to message #443072] Wed, 25 January 2006 19:12 Go to previous message
Kenneth Evans, Jr. is currently offline Kenneth Evans, Jr.Friend
Messages: 77
Registered: July 2009
Member
I'm using Visual Studio 8, a.k.a. Visual Studio 2005.

-Ken

"Ian Leslie" <lesliesoftware@yahoo.com> wrote in message
news:40034ef960e32773f40ed3d14c9eac3a$1@www.eclipse.org...
> My guess is the key are the 16.7 million colour versions. XP prefers to
> use those and if Visual Studio 6 cannot edit them that would explain why
> things are working for me (using .Net) and not for you (using VS 6).
>
> Ian
>
Previous Topic:User preferences
Next Topic:Best practice RCP + Spring Framework + Hibernate
Goto Forum:
  


Current Time: Fri Apr 26 22:35:14 GMT 2024

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

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

Back to the top