Eclipse Platform
2.0

org.eclipse.team.ui
Class TeamImages

java.lang.Object
  |
  +--org.eclipse.team.ui.TeamImages

public class TeamImages
extends Object

TeamImages provides convenience methods for accessing shared images provided by the org.eclipse.team.ui plug-in.


Constructor Summary
TeamImages()
           
 
Method Summary
protected static void createImageDescriptor(String id, URL baseURL)
          Creates an image and places it in the image registry.
static ImageDescriptor getImageDescriptor(String id)
          Returns the image descriptor for the given image ID.
static ImageDescriptor getImageDescriptorFromExtension(IExtension extension, String subdirectoryAndFilename)
          Convenience method to get an image descriptor for an extension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamImages

public TeamImages()
Method Detail

createImageDescriptor

protected static void createImageDescriptor(String id,
                                            URL baseURL)
Creates an image and places it in the image registry.

Parameters:
id - the identifier for the image
baseURL - the base URL for the image

getImageDescriptor

public static ImageDescriptor getImageDescriptor(String id)
Returns the image descriptor for the given image ID. Returns null if there is no such image.

Parameters:
id - the identifier for the image to retrieve
Returns:
the image associated with the given ID

getImageDescriptorFromExtension

public static ImageDescriptor getImageDescriptorFromExtension(IExtension extension,
                                                              String subdirectoryAndFilename)
Convenience method to get an image descriptor for an extension

Parameters:
extension - the extension declaring the image
subdirectoryAndFilename - the path to the image
Returns:
the image

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.