Class ImageManager

java.lang.Object
org.libreoffice.ide.eclipse.core.i18n.ImageManager

public class ImageManager extends Object
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 Details

    • ImageManager

      public ImageManager()
      Default constructor.
  • Method Details

    • getImage

      public org.eclipse.swt.graphics.Image getImage(String key)
      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 null if the key doesn't exists or the bundle is null
    • getImageDescriptor

      public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String key)
      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 null if the key doesn't exists or the bundle is null
    • getImageDescriptorFromPath

      public org.eclipse.jface.resource.ImageDescriptor getImageDescriptorFromPath(String pPath)
      Finds the image descriptor from the bundle relative path of the image.
      Parameters:
      pPath - the image path
      Returns:
      the image descriptor