Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to set the RCP main app icon
How to set the RCP main app icon [message #263428] Fri, 23 July 2004 04:35 Go to next message
Eclipse UserFriend
Hello,

shamefully I have to say that I didn't find it on my own:
How to I set my own RCP main icon (usually left to the
title bar)??
Do I have to define a feature or should/can I do that
programmatically (where?) ?

Thank you very much for your help,

Daniel Krügler
Re: How to set the RCP main app icon [message #263433 is a reply to message #263428] Fri, 23 July 2004 04:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbo.shift-think.net

Hello Daniel

As far as I know, you have to recompile the 'eclipse.exe'. You can provide a
customized icon file there which will be used for your executable. But you
will need Visual C++ or GNU C (on Linux).

Let me know if you want details on how to achieve this. I don't know if
there is an easyer way. I have the necessary setup, so if you want me to
recompile the binary, let me know.

Chers,
Michael


"Daniel Kr
Re: How to set the RCP main app icon [message #263444 is a reply to message #263433] Fri, 23 July 2004 05:00 Go to previous messageGo to next message
Eclipse UserFriend
Hello Michael,

Michael Boeni schrieb:
> Hello Daniel
>
> As far as I know, you have to recompile the 'eclipse.exe'. You can provide a
> customized icon file there which will be used for your executable. But you
> will need Visual C++ or GNU C (on Linux).
>
> Let me know if you want details on how to achieve this. I don't know if
> there is an easyer way. I have the necessary setup, so if you want me to
> recompile the binary, let me know.

Thanks for your answer, but obviously I did ask my question the wrong
way: I don't want to modify the Eclipse look-and-feel, I only want to
write my own RCP app using Eclipse. Now this self-written app should
have its own main window icon. Currently my very simple app (written
according to Ed Burnette's nice tutorial) shows a kind of default icon.
I strongly hope and assume that this default icon can be reset to a
user-defined one. But currently I don't see how to realize that...

Thanks for your help,

Daniel
Re: How to set the RCP main app icon [message #263446 is a reply to message #263444] Fri, 23 July 2004 05:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi,
I think you have to define your own product extension (as in org.eclipse.platform),
and then enter your image(s) to the windowImanges-Properties, as in the following
snipped out of the eclipse/plugins/org.eclipse.platform_3.0.0/plugin.xml:

<extension id="ide" point="org.eclipse.core.runtime.products">
<product name="%productName" application="org.eclipse.ui.ide.workbench" description="%productBlurb">
<property name="windowImages" value="eclipse.gif,eclipse32.gif"/>
<property name="aboutImage" value="eclipse_lg.gif"/>
<property name="aboutText" value="%productBlurb"/>
<property name="appName" value="Eclipse"/>
<property name="preferenceCustomization" value="plugin_customization.ini"/>
</product>
</extension>


Regards,

Peter

Daniel Krügler wrote:
> Hello Michael,
>
> Michael Boeni schrieb:
>
>> Hello Daniel
>>
>> As far as I know, you have to recompile the 'eclipse.exe'. You can
>> provide a
>> customized icon file there which will be used for your executable. But
>> you
>> will need Visual C++ or GNU C (on Linux).
>>
>> Let me know if you want details on how to achieve this. I don't know if
>> there is an easyer way. I have the necessary setup, so if you want me to
>> recompile the binary, let me know.
>
>
> Thanks for your answer, but obviously I did ask my question the wrong
> way: I don't want to modify the Eclipse look-and-feel, I only want to
> write my own RCP app using Eclipse. Now this self-written app should
> have its own main window icon. Currently my very simple app (written
> according to Ed Burnette's nice tutorial) shows a kind of default icon.
> I strongly hope and assume that this default icon can be reset to a
> user-defined one. But currently I don't see how to realize that...
>
> Thanks for your help,
>
> Daniel
>
Re: How to set the RCP main app icon [message #263449 is a reply to message #263446] Fri, 23 July 2004 06:12 Go to previous messageGo to next message
Eclipse UserFriend
Thank you very much for that hint! But regrettably it doens't work. I
extended my core plugin with the following:

<extension
point="org.eclipse.core.runtime.products">
<product
name="My Name"
application="My Application">
<property
value="MyImage.gif"
name="windowImages"/>
</product>
</extension>

and copied MyImage.gif into the directory where that core plugin.xml
is located. After startup of the app the default icon remained.

Any ideas?

Thanks in advance,

Daniel Krügler


user@domain.invalid schrieb:
> Hi,
> I think you have to define your own product extension (as in
> org.eclipse.platform),
> and then enter your image(s) to the windowImanges-Properties, as in the
> following
> snipped out of the eclipse/plugins/org.eclipse.platform_3.0.0/plugin.xml:
>
> <extension id="ide" point="org.eclipse.core.runtime.products">
> <product name="%productName"
> application="org.eclipse.ui.ide.workbench" description="%productBlurb">
> <property name="windowImages" value="eclipse.gif,eclipse32.gif"/>
> <property name="aboutImage" value="eclipse_lg.gif"/>
> <property name="aboutText" value="%productBlurb"/>
> <property name="appName" value="Eclipse"/>
> <property name="preferenceCustomization"
> value="plugin_customization.ini"/>
> </product>
> </extension>
Re: How to set the RCP main app icon [message #263450 is a reply to message #263449] Fri, 23 July 2004 06:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi,

you must do a FULL product definition (as in org.eclipse.platform),
and start your RCP with the additional parameter -procuct <productid>.

Perhaps you read in the Help->Platform Plug-in Developer Guide->Programmer's Guide->Packaging and delivering Eclipse
base products->Defining a Product->The products extension point


Or, without any product stuff, simply replace eclipse.gif and eclipse32.gif
with your own images :-)

Regards,

Peter


Daniel Krügler wrote:

> Thank you very much for that hint! But regrettably it doens't work. I
> extended my core plugin with the following:
>
> <extension
> point="org.eclipse.core.runtime.products">
> <product
> name="My Name"
> application="My Application">
> <property
> value="MyImage.gif"
> name="windowImages"/>
> </product>
> </extension>
>
> and copied MyImage.gif into the directory where that core plugin.xml
> is located. After startup of the app the default icon remained.
>
> Any ideas?
>
> Thanks in advance,
>
> Daniel Krügler
>
>
> user@domain.invalid schrieb:
>
>> Hi,
>> I think you have to define your own product extension (as in
>> org.eclipse.platform),
>> and then enter your image(s) to the windowImanges-Properties, as in
>> the following
>> snipped out of the eclipse/plugins/org.eclipse.platform_3.0.0/plugin.xml:
>>
>> <extension id="ide" point="org.eclipse.core.runtime.products">
>> <product name="%productName"
>> application="org.eclipse.ui.ide.workbench" description="%productBlurb">
>> <property name="windowImages"
>> value="eclipse.gif,eclipse32.gif"/>
>> <property name="aboutImage" value="eclipse_lg.gif"/>
>> <property name="aboutText" value="%productBlurb"/>
>> <property name="appName" value="Eclipse"/>
>> <property name="preferenceCustomization"
>> value="plugin_customization.ini"/>
>> </product>
>> </extension>
>
>
Re: How to set the RCP main app icon [message #263467 is a reply to message #263450] Fri, 23 July 2004 08:19 Go to previous messageGo to next message
Eclipse UserFriend
user@domain.invalid schrieb:
> Hi,
>
> you must do a FULL product definition (as in org.eclipse.platform),
> and start your RCP with the additional parameter -procuct <productid>.
>
> Perhaps you read in the Help->Platform Plug-in Developer
> Guide->Programmer's Guide->Packaging and delivering Eclipse base
> products->Defining a Product->The products extension point
>
>
> Or, without any product stuff, simply replace eclipse.gif and eclipse32.gif
> with your own images :-)
>
> Regards,
>
> Peter


Many thanks Peter - I got it working!! (The biggest problem was that I
did not provide the -product program parameter in my first attempt...)

Have a nice weekend,

Daniel
Re: How to set the RCP main app icon [message #263600 is a reply to message #263467] Fri, 23 July 2004 21:22 Go to previous message
Eclipse UserFriend
FYI there's an example of this at:
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -ui-home/rcp/index.html
(in Nick's Browser example). And there is documentation on the extension in
Eclipse help.

--
Ed Burnette, co-author, Eclipse in Action
www.manning.com/gallardo
www.eclipsepowered.org


"Daniel Kr
Previous Topic:Eclipse 3.0 and RTF copy
Next Topic:DLL file placement
Goto Forum:
  


Current Time: Thu Jul 17 20:17:47 EDT 2025

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

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

Back to the top