Eclipse RCP: ISharedImages

One good thing of using a RCP platform is you’ve got access to standard images that are often used. That is not valid, of course, if you are so obsessed about the icons and want to customize the icons.

In Eclipse you can access the standard images by using:

PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_DEF_VIEW);

Change the parameter with one from the constant in ISharedImages. You can check the list (unfortunately not complete) from this link.

If you want the complete list (and more exciting, will be valid all the times, even if the list get updated) by running my little application. You can download the complete source code from here.

Once you run the application, you will see all the images referred from ISharedImages like here:

listISharedImages

Moreover, if you click one of the button, you will get the text on the clipboard which you can paste wherever you want.

Related posts:

  1. Embedding Jetty Server in Eclipse RCP
  2. Eclipse Tips: Debugging your multi thread application (2)
  3. Eclipse RCP: Creating dynamic menu
  4. Eclipse Tips: Debugging your multi-thread application
  5. Eclipse Tips: (Debugging) Ignoring certain classes from being stepped into

0 Responses to “Eclipse RCP: ISharedImages”


  • No Comments

Leave a Reply