za.co.bluesphere.sens.internal.ui
Class Images

java.lang.Object
  extended by za.co.bluesphere.sens.internal.ui.Images

public class Images
extends java.lang.Object

The image descrptors for the plugin.

Once again this is fairly serious resource voodoo. This time in we are letting the plug-in lifecycle methods dictate when we should clean up any images used by our user interface buttons and so on.

This class is used by Policy.initAction to get its job done.


Constructor Summary
Images()
           
 
Method Summary
static org.eclipse.swt.graphics.Image get(java.lang.String id)
          Returns the image associated with the given key, or null if none.
static org.eclipse.jface.resource.ImageDescriptor getDescriptor(java.lang.String id)
          Returns the image descriptor for ID, or null if not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Images

public Images()
Method Detail

getDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getDescriptor(java.lang.String id)
Returns the image descriptor for ID, or null if not found.

Images are from RegistryUIPlugin.getDefault().getImages()

Parameters:
id -
Returns:
ImageDescriptor, or null if there is no such image.

get

public static org.eclipse.swt.graphics.Image get(java.lang.String id)
Returns the image associated with the given key, or null if none.

Parameters:
id -
Returns:
the image, or null if none