How to set the RCP main app icon [message #263428] |
Fri, 23 July 2004 04:35  |
Eclipse User |
|
|
|
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 #263446 is a reply to message #263444] |
Fri, 23 July 2004 05:42   |
Eclipse User |
|
|
|
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 #263450 is a reply to message #263449] |
Fri, 23 July 2004 06:33   |
Eclipse User |
|
|
|
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>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.56666 seconds