Package 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.This class provides
ImageDescriptor
s for each named image inISharedImages
. AllImage
objects created from the provided descriptors are managed the caller and must be disposed appropriately.This class is not intended to be subclassed or instantiated by clients
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description TeamImages()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getImageDescriptor
public static ImageDescriptor getImageDescriptor(String id)
Returns the image descriptor for the given image ID. Returnsnull
if there is no such image.- Parameters:
id
- the identifier for the image to retrieve- Returns:
- the image descriptor 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 imagesubdirectoryAndFilename
- the path to the image- Returns:
- the image descriptor for the extension
-
-