Feb 11, 2008

Eclipse Icons - follow up post

Follow up 1:
Ben had a nice script for fetching all the icons from the cvs. I'm adding it here:

#!/bin/sh
CVSROOT=:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse
export CVSROOT
mkdir -p eclipse
cd eclipse
cvs -q co org.eclipse.debug.ui/icons
cvs -q co org.eclipse.pde.ui/icons
cvs -q co org.eclipse.jdt.ui/icons
cvs -q co org.eclipse.vcm.ui/icons
cvs -q co org.eclipse.team.ui/icons
cvs -q co org.eclipse.ant.ui/icons
cvs -q co org.eclipse.help.ui/icons
cvs -q co org.eclipse.ui/icons
cvs -q co org.eclipse.ui.views/icons
cvs -q co org.eclipse.ui.console/icons
cd ..
rm -f ~/public_html/eclipse-icons.zip
find eclipse -name "*.gif" -print | zip ~/public_html/eclipse-icons.zip -@
Follow up 2:
I remember Ben having a HTML page which lists all the icons. But due to bandwidth issues, he moved it to a zipped set of icons. Now that is also gone from the page. I've a back up of those icons. So if you want the complete set of icons, instead of the most commonly used ones, download them here.

Follow up 3:
Phillipus left a comment in the post saying how to access the icons from other plugins without bundling them in your plugin:

AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.ui", "$nl$/icons/full/etool16/import_wiz.gif");

This is cool but raises an interesting question. What happens during an Eclipse upgrade? Will they be retained in the same name? Or rather a straight question: Are these icons part of API? I didn't know the answer. So posting the question here. Those who know please throw some light on this.

Related:

Eclipse Icons - original post
Searching for Eclipse - source, blogs, images ...
Accessing CVS of Eclipse.org

5 comments:

Boris Bokowski said...

We do not consider icons (or their appearance) part of our API, unless they are referenced from public Java API, such as the images made available through constants on org.eclipse.ui.ISharedImages and IWorkbench.getSharedImages(). I can only speak for the plug-ins owned by Platform UI, but would expect others to follow a similar route whereby they explicitly call out those images that they provide to other plug-ins as part of their API.

Tomasz Zarna said...

If you have access to IBM w3 pages you will probably find this page very useful - http://stwweb1.torolab.ibm.com/ux/vdc/uigr/search2.cfm . It generally does the same thing as the script mentioned by Prakash, the main difference is that it presents the result in a table.

Tomasz Zarna said...

If you have access to w3 pages you will probably find this page very useful - http://stwweb1.torolab.ibm.com/ux/vdc/uigr/search2.cfm . It generally does the same thing as the script mentioned by Prakash, the main difference is that it presents the result in a table.

Prakash G.R. said...

Looks like that one is internal to IBM. If its legal to do, can you publish the script?

Tomasz Zarna said...

I wish I could, but it's a search form. I don't know what's happening under the hood.