Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to access resource images in Explorer
how to access resource images in Explorer [message #799951] Thu, 16 February 2012 13:56 Go to next message
Mikael Petterson is currently offline Mikael PettersonFriend
Messages: 153
Registered: July 2009
Senior Member
Hi,

How can I access that images shown for different resources in Explorer in Workbench.
E.g. Java file it is an Image with a J and for C++ it is a file with C on....

Any hints on how I can do it.

br,

//mike
Re: how to access resource images in Explorer [message #799957 is a reply to message #799951] Thu, 16 February 2012 14:03 Go to previous messageGo to next message
Christian Sell is currently offline Christian SellFriend
Messages: 51
Registered: August 2010
Member
there is no way for this in SWT, nor in AWT/Swing. You will have to go to some library that directly interfaces with the OS, such as this
Re: how to access resource images in Explorer [message #799994 is a reply to message #799957] Thu, 16 February 2012 14:52 Go to previous messageGo to next message
Mikael Petterson is currently offline Mikael PettersonFriend
Messages: 153
Registered: July 2009
Senior Member
Hi,

I don't want the OS icons but the Eclipse Explorer/Navigator images.

br,

//mike
Re: how to access resource images in Explorer [message #800010 is a reply to message #799994] Thu, 16 February 2012 15:20 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
First a correction: You CAN get the OS icon with Program.getImageData().

I don't know if/where Eclipse exposes its file type images. You should
ask this on the eclipse.platform newsgroup.

Grant


On 2/16/2012 9:52 AM, Mikael Petterson wrote:
> Hi,
>
> I don't want the OS icons but the Eclipse Explorer/Navigator images.
>
> br,
>
> //mike
Previous Topic:SWT Browser and choosing the rendering engine
Next Topic:Changing font of menus....
Goto Forum:
  


Current Time: Thu Nov 27 08:37:08 GMT 2014

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

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