Class ImageManager
- java.lang.Object
-
- org.libreoffice.ide.eclipse.core.i18n.ImageManager
-
public class ImageManager extends java.lang.ObjectThe 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 isImageManager.properties.
-
-
Constructor Summary
Constructors Constructor Description ImageManager()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.ImagegetImage(java.lang.String pKey)Method which returns the image corresponding to the provided key.org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor(java.lang.String pKey)Method which returns the image descriptor corresponding to the provided key.org.eclipse.jface.resource.ImageDescriptorgetImageDescriptorFromPath(java.lang.String pPath)Finds the image descriptor from the bundle relative path of the image.
-
-
-
Method Detail
-
getImage
public org.eclipse.swt.graphics.Image getImage(java.lang.String pKey)
Method which returns the image corresponding to the provided key.- Parameters:
pKey- 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
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String pKey)
Method which returns the image descriptor corresponding to the provided key.- Parameters:
pKey- 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
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptorFromPath(java.lang.String pPath)
Finds the image descriptor from the bundle relative path of the image.- Parameters:
pPath- the image path- Returns:
- the image descriptor
-
-