[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Reusing eclipse icons

Hi Daniel,

Use the class WorkbenchLabelProvider and WorkbenchContentProvider. That way Eclipse will do all the work for you. It will have *ALL* the icons of all the plug-ins that are known of.

One thing about Eclipse is that it takes days to find out how to do something. Once you've found the way, it takes a couple lines of code :-)


Daniel Winterstein wrote:

Thanks Niklas. I want to use the resource navigator icons (collapse & sync-with-editor, to be specific). Unfortunately ISharedImages does not include these icons.
- Daniel


Niklas Deutschmann wrote:
Hi Daniel,

It would be better to directly reuse the icon files shipped with Eclipse. That way your UI would remain consistent even if Eclipse changes its style. So is there a way to get access to these icons?

You can access a (small) set of images using PlatformUI.getWorkbench().getSharedImages()


There are probably some more in "internal" classes.

Regards,
Niklas