Class ImageManager
java.lang.Object
org.libreoffice.ide.eclipse.core.i18n.ImageManager
The image manager is an object returning an image or an image descriptor from a key. The keys are described in the
ImagesConstants class and the associated properties file is
ImageManager.properties.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.graphics.ImageMethod which returns the image corresponding to the provided key.org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor(String key) Method which returns the image descriptor corresponding to the provided key.org.eclipse.jface.resource.ImageDescriptorgetImageDescriptorFromPath(String pPath) Finds the image descriptor from the bundle relative path of the image.
-
Constructor Details
-
ImageManager
public ImageManager()Default constructor.
-
-
Method Details
-
getImage
Method which returns the image corresponding to the provided key.- Parameters:
key- Key corresponding to the image to find- Returns:
- image corresponding to the key, or
nullif the key doesn't exists or the bundle is null
-
getImageDescriptor
Method which returns the image descriptor corresponding to the provided key.- Parameters:
key- Key corresponding to the image to find- Returns:
- image descriptor corresponding to the key, or
nullif the key doesn't exists or the bundle is null
-
getImageDescriptorFromPath
Finds the image descriptor from the bundle relative path of the image.- Parameters:
pPath- the image path- Returns:
- the image descriptor
-