Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Anyone know how to get icons for common file types?
Anyone know how to get icons for common file types? [message #637277] Thu, 04 November 2010 15:39 Go to next message
Max Mising name is currently offline Max Mising name
Messages: 54
Registered: September 2010
Member
I'm writing a file browser view thing which is like the package explorer but has random directories from the file system instead of a workspace. I'd like to reuse all the icons that package explorer uses for common file types like python scripts, text files, properties files, xml files, etc, etc. But can't seem to find any place to look up an image for a file like you can look up an editor for a file. Anyone know of anything?

Thanks

Max
Re: Anyone know how to get icons for common file types? [message #637297 is a reply to message #637277] Thu, 04 November 2010 18:12 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25999
Registered: July 2009
Senior Member
Max,

Have a look at
PlatformUI.getWorkbench().getEditorRegistry().getImageDescri ptor .

Max wrote:
> I'm writing a file browser view thing which is like the package
> explorer but has random directories from the file system instead of a
> workspace. I'd like to reuse all the icons that package explorer uses
> for common file types like python scripts, text files, properties
> files, xml files, etc, etc. But can't seem to find any place to look
> up an image for a file like you can look up an editor for a file.
> Anyone know of anything?
>
> Thanks
>
> Max
Re: Anyone know how to get icons for common file types? [message #637300 is a reply to message #637297] Thu, 04 November 2010 18:41 Go to previous message
Max Mising name is currently offline Max Mising name
Messages: 54
Registered: September 2010
Member
Thanks, worked!

Max
Previous Topic:How to do an easy localization of eclipse platform parts?
Next Topic:Reading Command Line Parameters in RCP App
Goto Forum:
  


Current Time: Fri Aug 22 08:00:31 EDT 2014

Powered by FUDForum. Page generated in 0.01687 seconds