Explaining an action or describing an object with fewer words is tough. Showing them as 16x16 icons is even more tougher. Eclipse has a wonderful collection of icons. The best part of it - the whole set is consistent in sizing, coloring and styling. (I personally feel that icons like the filter
, jar library
, plugins
are brilliantly done). You can reuse them in many places in your own plugins/RCP Application as well. AFAIK, these icons are under Eclipse Public License and so you should not be falling into any legal trap for using these (don't take my word, I'm not a lawyer :-).
Many common images (undo, redo, file, folder, cut, copy) are available thru the org.eclipse.ui.ISharedImages interface. You can get them with IWorkbench:
Image folderImg = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_FOLDER);
For other common items (refresh, filter, collapse all, expand all), finding the images inside the plugins jars will be a tough task. So here are some images that you can reuse in your plugins:
Add, Delete :

Collapse All/Expand All: 
Navigation:

Window operations: 


Run & Debug:

Import & Export:

Date & Time:

Editor Operations:

Vertical & Horizontal:

Flat & Hierarchical: 

Misc: Eclipse
, Config
&
, Console
, Font
Help
, Lock
, Stop
, Properties
, Search
&
, Tip/Quick Fix
, Sort
, Task
&
, Sync
&
, Pulldown Menu
, Binary
, Bookmark
, Category 
Let me know if I've missed any commonly used icon. I'll add it to this list. The complete set of above icons can be downloaded from here.
Related:
Eclipse Icons - follow up post
Searching for Eclipse - source, blogs, images ...
Accessing CVS of Eclipse.org

6 comments:
check this post that contains a script to grab icons directly from eclipse cvs.
You may need to adopt the script to changes in the cvs infrastructure and add some new packages, but it should work.
Hi Prakash,
Do you know off the top of your head if there is an icon under EPL to represent a 'network service'? Or even an 'OSGi service'? Maybe in WTP?
Thanksinadvance,
Scott
The icons a really great. We used them outside of eclipse in the qooxdoo API viewer.
Ok, we are now not totally outside of Eclipse since we are part of the RAP project. But this is a different story and we used the icons even before :-)
But if you know which plug-in contains the icon you can access it:
AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.ui", "$nl$/icons/full/etool16/import_wiz.gif");
;-)
I was very surprised when I found out that most icons PDE uses aren't existing as icons, but get generated "on the fly" from base icons with many decorations applied. The decorated icons represent subtle nuances, such as editable/not editable, fragment or bundle - which most people aren't aware of I think. I wanted to use some of them, but after I saw how they are generated, I gave up, and just used the plain icons.
@ dominikg:
Thanks for the info. I'll update this post with the script.
@scott:
I'm not aware of any icons representing osgi from Eclipse. But check this icon: http://www.osgi.org/www/favicon.png Its a 32x32, but you can resize to 16x16 and use it. But I'm not sure of the legal stuff. Check that before using.
@ phillipus:
Thats a cool idea!
@kim sullivan:
Yes, decorations are also important part of the images shown. I'll write a post on that sometime
Post a Comment