Class TransSharedImages

java.lang.Object
com.e1c.langtool.ui.TransSharedImages

public final class TransSharedImages extends Object
Common images used by the workbench which may be useful to other plug-ins.
  • Field Details

  • Constructor Details

    • TransSharedImages

      public TransSharedImages()
  • Method Details

    • initializeImageRegistry

      public static void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry reg)
    • getImage

      public static org.eclipse.swt.graphics.Image getImage(String symbolicName)
      Retrieves the specified image from the translation ui plugin's image registry. Note: The returned Image is managed by the workbench; clients must not dispose of the returned image.
      Parameters:
      symbolicName - the symbolic name of the image; there are constants declared in this interface for build-in images that come with the workbench
      Returns:
      the image, or null if not found
    • getImageDescriptor

      public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String symbolicName)
      Retrieves the image descriptor for specified image from the translation ui plugin's image registry. Unlike Images, image descriptors themselves do not need to be disposed.
      Parameters:
      symbolicName - the symbolic name of the image; there are constants declared in this interface for build-in images that come with the workbench
      Returns:
      the image descriptor, or null if not found