Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Default Icon for new Shells(Whenever I create a new shell, the icon is wrong)
Default Icon for new Shells [message #528309] Tue, 20 April 2010 06:40 Go to next message
Ricky Patel is currently offline Ricky PatelFriend
Messages: 33
Registered: July 2009
Member
Hey out there,

I was curious if I may have set something up wrong here. So my RCP app has a need to create new shells to allow a user to chat in a single window. The issue is, when I create a new shell, the icon on that shell is different than the one I've set for the application. The main window has the correct Icon and works perfectly. The new shell, isn't picking this icon up and instead shows the default windows dos icon.

First question, is there something wrong with my set up or is this how it is supposed to behave.

Second question, is there a way that I can read the icon set via the windowImages attribute in the product extension point and load it to the shell (using setImage?)
Re: Default Icon for new Shells [message #529124 is a reply to message #528309] Fri, 23 April 2010 06:54 Go to previous messageGo to next message
Ricky Patel is currently offline Ricky PatelFriend
Messages: 33
Registered: July 2009
Member
I'm assuming by the 120 views and 0 answers that there isn't a known solution for this problem.
Re: Default Icon for new Shells [message #529225 is a reply to message #528309] Fri, 23 April 2010 13:54 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

How are you creating a new shell?

We use org.eclipse.jface.window.Window to create our dialogs and
windows, and they have access to getDefaultImage().

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Default Icon for new Shells [message #529274 is a reply to message #529225] Fri, 23 April 2010 16:36 Go to previous messageGo to next message
Ricky Patel is currently offline Ricky PatelFriend
Messages: 33
Registered: July 2009
Member
I was creating it using new Shell () as I thought that is how it should be done.

How would I create a new shell type object through the org.eclipse.jface.window package?
Re: Default Icon for new Shells [message #529284 is a reply to message #528309] Fri, 23 April 2010 17:00 Go to previous messageGo to next message
Ricky Patel is currently offline Ricky PatelFriend
Messages: 33
Registered: July 2009
Member
Dumb question:

ApplicationWindow window2 = new ApplicationWindow (Shell parent);
Re: Default Icon for new Shells [message #529295 is a reply to message #529284] Fri, 23 April 2010 17:46 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Ricky Patel wrote:
> Dumb question:
>
> ApplicationWindow window2 = new ApplicationWindow (Shell parent);

That's if you want to take advantage of some of the support offered by
JFace Dialog or JFace ApplicationWindow

You can in theory use the Window static method to see if dialog images
are set, no?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Re: Zoom view to a specific size or % of screen
Next Topic:how to invoke a new view from existing view
Goto Forum:
  


Current Time: Fri Apr 26 07:24:19 GMT 2024

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

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

Back to the top