Package com.iizigo

Class ImageRegistry

java.lang.Object
com.iizigo.ImageRegistry

public class ImageRegistry extends Object
The Image Registry holds information about Image Descriptors and Image instances.
Author:
Christopher Mindus
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
    Decorators.
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
    Designer images.
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
    Images provided with this plug-in.
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
    Workbench shared images.
    final org.eclipse.jface.resource.ImageDescriptor
     
    final org.eclipse.jface.resource.ImageDescriptor
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jface.resource.ImageDescriptor
    get(Class<? extends GProp<?>> propertyClass)
    Gets an Image Descriptor image for a property class.
    org.eclipse.jface.resource.ImageDescriptor
    get(String fileName)
    Gets an icon Image Descriptor from the iiziGo Plugin's "icons" folder.
    org.eclipse.jface.resource.ImageDescriptor
    get(String pluginID, String fileName)
    Gets an icon Image Descriptor from the "icons" folder of the specified.
    Gets the Image Registry.
    org.eclipse.jface.resource.ImageDescriptor
    Loads a workbench Image from its symbolic name defined in org.eclipse.ui.ISharedImages.
    void
    register(Class<? extends GProp<?>> propertyClass, String fileName)
    Registers images for property classes.
    void
    register(Class<? extends GProp<?>> propertyClass, org.eclipse.jface.resource.ImageDescriptor descriptor)
    Registers images for property classes.
    boolean
    remove(org.eclipse.jface.resource.ImageDescriptor descriptor)
    Removes an image descriptor from the map of loaded ones.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • idIIZI

      public final org.eclipse.jface.resource.ImageDescriptor idIIZI
      Designer images.
    • idErrorDecoration

      public final org.eclipse.jface.resource.ImageDescriptor idErrorDecoration
      Decorators.
    • idWarningDecoration

      public final org.eclipse.jface.resource.ImageDescriptor idWarningDecoration
    • idNewDecoration

      public final org.eclipse.jface.resource.ImageDescriptor idNewDecoration
    • idRequiredDecoration

      public final org.eclipse.jface.resource.ImageDescriptor idRequiredDecoration
    • idUndo

      public final org.eclipse.jface.resource.ImageDescriptor idUndo
      Workbench shared images.
    • idUndoDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idUndoDisabled
    • idRedo

      public final org.eclipse.jface.resource.ImageDescriptor idRedo
    • idRedoDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idRedoDisabled
    • idCut

      public final org.eclipse.jface.resource.ImageDescriptor idCut
    • idCutDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idCutDisabled
    • idCopy

      public final org.eclipse.jface.resource.ImageDescriptor idCopy
    • idCopyDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idCopyDisabled
    • idPaste

      public final org.eclipse.jface.resource.ImageDescriptor idPaste
    • idPasteDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idPasteDisabled
    • idDelete

      public final org.eclipse.jface.resource.ImageDescriptor idDelete
    • idDeleteDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idDeleteDisabled
    • idSave

      public final org.eclipse.jface.resource.ImageDescriptor idSave
    • idSaveDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idSaveDisabled
    • idRemove

      public final org.eclipse.jface.resource.ImageDescriptor idRemove
    • idRemoveDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idRemoveDisabled
    • idRemoveAll

      public final org.eclipse.jface.resource.ImageDescriptor idRemoveAll
    • idRemoveAllDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idRemoveAllDisabled
    • idPasteBefore

      public final org.eclipse.jface.resource.ImageDescriptor idPasteBefore
      Images provided with this plug-in.
    • idPasteBeforeDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idPasteBeforeDisabled
    • idPasteAfter

      public final org.eclipse.jface.resource.ImageDescriptor idPasteAfter
    • idPasteAfterDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idPasteAfterDisabled
    • idPasteLinkDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idPasteLinkDisabled
    • idSelectAll

      public final org.eclipse.jface.resource.ImageDescriptor idSelectAll
    • idSelectAllDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idSelectAllDisabled
    • idPrint

      public final org.eclipse.jface.resource.ImageDescriptor idPrint
    • idPrintDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idPrintDisabled
    • idRename

      public final org.eclipse.jface.resource.ImageDescriptor idRename
    • idRenameDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idRenameDisabled
    • idMove

      public final org.eclipse.jface.resource.ImageDescriptor idMove
    • idMoveDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idMoveDisabled
    • idLinkDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idLinkDisabled
    • idCollapseAll

      public final org.eclipse.jface.resource.ImageDescriptor idCollapseAll
    • idExpandAll

      public final org.eclipse.jface.resource.ImageDescriptor idExpandAll
    • idCopyReference

      public final org.eclipse.jface.resource.ImageDescriptor idCopyReference
    • idCopyReferenceDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idCopyReferenceDisabled
    • idCopyFullPath

      public final org.eclipse.jface.resource.ImageDescriptor idCopyFullPath
    • idCopyFullPathDisabled

      public final org.eclipse.jface.resource.ImageDescriptor idCopyFullPathDisabled
  • Method Details

    • getInstance

      public static ImageRegistry getInstance()
      Gets the Image Registry.
      Returns:
      The ImageRegistry singleton.
    • register

      public void register(Class<? extends GProp<?>> propertyClass, String fileName)
      Registers images for property classes.
      Parameters:
      propertyClass - The property class.
      fileName - The file name of the image, relative the "icons" folder.
    • register

      public void register(Class<? extends GProp<?>> propertyClass, org.eclipse.jface.resource.ImageDescriptor descriptor)
      Registers images for property classes.
      Parameters:
      propertyClass - The property class.
      descriptor - The image descriptor.
    • get

      public org.eclipse.jface.resource.ImageDescriptor get(Class<? extends GProp<?>> propertyClass)
      Gets an Image Descriptor image for a property class.
      Parameters:
      propertyClass - The property class.
      Returns:
      The Image Descriptor or null for none.
    • get

      public org.eclipse.jface.resource.ImageDescriptor get(String fileName)
      Gets an icon Image Descriptor from the iiziGo Plugin's "icons" folder.
      Parameters:
      fileName - A file name (or relative path to file).
      Returns:
      The Image Descriptor.
    • get

      public org.eclipse.jface.resource.ImageDescriptor get(String pluginID, String fileName)
      Gets an icon Image Descriptor from the "icons" folder of the specified.
      Parameters:
      pluginID - The plugin ID for where to retrieve the icon ImageDescriptor.
      fileName - A file name (or relative path to file).
      Returns:
      The Image Descriptor.
    • getWorkbenchShared

      public org.eclipse.jface.resource.ImageDescriptor getWorkbenchShared(String name)
      Loads a workbench Image from its symbolic name defined in org.eclipse.ui.ISharedImages.
      Parameters:
      name - The name.
      Returns:
      The Image Descriptor or null if not found.
    • remove

      public boolean remove(org.eclipse.jface.resource.ImageDescriptor descriptor)
      Removes an image descriptor from the map of loaded ones.
      Parameters:
      descriptor - The image descriptor.
      Returns:
      true for removed, false if not removed.