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 08:56 Go to next message
Mikael Petterson is currently offline Mikael Petterson
Messages: 151
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 09:03 Go to previous messageGo to next message
Christian Sell is currently offline Christian Sell
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 09:52 Go to previous messageGo to next message
Mikael Petterson is currently offline Mikael Petterson
Messages: 151
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 10:20 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
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: Wed Aug 27 13:06:16 EDT 2014

Powered by FUDForum. Page generated in 0.01838 seconds