Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » RCP Application icons
RCP Application icons [message #1743629] Sat, 17 September 2016 11:18 Go to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 38
Registered: December 2011
Member
Hello,

I have some troubles with icons.
When I launch my application, the icon shown in the Windows taskbar is scaled and JFace dialog shows a default icon.

My product configuration has the same icons than my old e3 product configuration.

During my tests, I decided to check Windows default icons with the function Windows.getDefaultImages and the function returns null ! The icons defined in my product configuration have not been loaded !

I added some code in LifeCycle class in the PostContextCreate function :
Image[] images=new Image[3];
images[0]=ResourceManager.getPluginImage(PLUG_ID, "icons/logo-16.bmp");
images[1]=ResourceManager.getPluginImage(PLUG_ID, "icons/logo-32.bmp");
images[2]=ResourceManager.getPluginImage(PLUG_ID, "icons/logo-48.bmp");
Window.setDefaultImages(images);

Now I have the correct icon in JFace dialog but not in the Windows taskbar.
I had the idea to remove icon uri from my main trimmed window and now it is OK !

Does anyone know if the problem of Windows default icons is a known bug ?

Thanks

Jean-Pascal

Re: RCP Application icons [message #1743855 is a reply to message #1743629] Tue, 20 September 2016 09:25 Go to previous messageGo to next message
ALex W is currently offline ALex WFriend
Messages: 56
Registered: July 2012
Member
Heelo,

Did you try with a 7 image ICO file ?
I'm using an .ico file in my product, and it works fine.
Re: RCP Application icons [message #1743960 is a reply to message #1743855] Wed, 21 September 2016 07:26 Go to previous messageGo to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 38
Registered: December 2011
Member
Hello

I have tried and I got the same result.
For information, I use Eclipse Neon.

JP
Re: RCP Application icons [message #1743965 is a reply to message #1743960] Wed, 21 September 2016 07:41 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2495
Registered: July 2012
Senior Member
What kind of URL are you using in the product configuration?
Re: RCP Application icons [message #1744131 is a reply to message #1743965] Thu, 22 September 2016 14:46 Go to previous messageGo to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 38
Registered: December 2011
Member
The url is plugin-based url.

/NRJ_Plus_Client_Base/icons/logo.ico

Jean-Pascal
Re: RCP Application icons [message #1744168 is a reply to message #1744131] Fri, 23 September 2016 06:36 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2495
Registered: July 2012
Senior Member
Have you checked that they are transported correctly to the plugin.xml of the plugin that specifies the product extension point?
Re: RCP Application icons [message #1744193 is a reply to message #1744168] Fri, 23 September 2016 09:59 Go to previous messageGo to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 38
Registered: December 2011
Member
Yes.
I am able to download the images from plugin at runtime.
Maybe a problem of start level ?

Jean-Pascal
Re: RCP Application icons [message #1744210 is a reply to message #1744193] Fri, 23 September 2016 11:38 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2495
Registered: July 2012
Senior Member
Ah no, I think it is an issue in the application model. Your screenshot shows the configuration for the launcher icon. But you are talking about the window icon. The window icon is set in the application model. And there you can not specify multiple resolutions. I went to specify the biggest one which gets automatically downscaled.

Not sure, but I think there is an inconsistency between product configuration and application model related to window icons. But honestly I'm not 100% sure right now.
Re: RCP Application icons [message #1744215 is a reply to message #1744210] Fri, 23 September 2016 12:09 Go to previous message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 38
Registered: December 2011
Member
It is the solution I have used before but icons for jface dialogs are wrong.
The only solution I have found is to load images at runtime.

I had not this problem when I used Eclipse 3.7

Thanks
Jean-Pascal
Previous Topic:Running e4 RCP application on GTK2
Next Topic:Update application with P2
Goto Forum:
  


Current Time: Mon Sep 25 17:11:07 GMT 2017

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

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