Skip to main content


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 19:39 Go to next message
Max Mising name is currently offline Max Mising nameFriend
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 22:12 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Anyone know how to get icons for common file types? [message #637300 is a reply to message #637297] Thu, 04 November 2010 22:41 Go to previous message
Max Mising name is currently offline Max Mising nameFriend
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: Wed Sep 25 00:02:23 GMT 2024

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

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

Back to the top