Modelers

org.topcased.modeler
Class ImageRegistry

java.lang.Object
  extended by org.topcased.modeler.ImageRegistry

public final class ImageRegistry
extends java.lang.Object

The Image registry for the plugin
Creation : 24 mars 2005


Method Summary
 org.eclipse.swt.graphics.Image get(org.osgi.framework.Bundle b, java.lang.String path)
          Get the image from the given bundle and the plugin image path
 org.eclipse.swt.graphics.Image get(java.lang.String path)
          get image by its path
 org.eclipse.swt.graphics.Image get(java.net.URL key)
          Returns the image associated with the given key in this registry, or null if none.
 org.eclipse.jface.resource.ImageDescriptor getDescriptor(org.osgi.framework.Bundle b, java.lang.String path)
          get image descriptor
 org.eclipse.jface.resource.ImageDescriptor getDescriptor(java.lang.String path)
          get image descriptor by its path
 org.eclipse.jface.resource.ImageDescriptor getDescriptor(java.net.URL key)
          Returns the descriptor associated with the given key in this registry, or null if none.
static ImageRegistry getInstance()
          get the instance of registry
 void remove(java.net.URL key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ImageRegistry getInstance()
get the instance of registry

Returns:
the shared instance

remove

public void remove(java.net.URL key)

get

public org.eclipse.swt.graphics.Image get(java.net.URL key)
Returns the image associated with the given key in this registry, or null if none.

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

getDescriptor

public org.eclipse.jface.resource.ImageDescriptor getDescriptor(java.net.URL key)
Returns the descriptor associated with the given key in this registry, or null if none.

Parameters:
key - the key
Returns:
the descriptor, or null if none

get

public org.eclipse.swt.graphics.Image get(org.osgi.framework.Bundle b,
                                          java.lang.String path)
Get the image from the given bundle and the plugin image path

Parameters:
b - the bundle where find the image
path - the image path
Returns:
the image

getDescriptor

public org.eclipse.jface.resource.ImageDescriptor getDescriptor(org.osgi.framework.Bundle b,
                                                                java.lang.String path)
get image descriptor

Parameters:
b -
path -
Returns:

get

public org.eclipse.swt.graphics.Image get(java.lang.String path)
get image by its path

Parameters:
path -
Returns:

getDescriptor

public org.eclipse.jface.resource.ImageDescriptor getDescriptor(java.lang.String path)
get image descriptor by its path

Parameters:
path -
Returns:

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.