Package com.iizigo

Class ImageRegistry


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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      org.eclipse.jface.resource.ImageDescriptorget​(java.lang.Class<? extends GProp<?>> propertyClass)
      Gets an Image Descriptor image for a property class.
      org.eclipse.jface.resource.ImageDescriptorget​(java.lang.String fileName)
      Gets an icon Image Descriptor from the iiziGo Plugin's "icons" folder.
      org.eclipse.jface.resource.ImageDescriptorget​(java.lang.String pluginID, java.lang.String fileName)
      Gets an icon Image Descriptor from the "icons" folder of the specified.
      static ImageRegistrygetInstance()
      Gets the Image Registry.
      org.eclipse.jface.resource.ImageDescriptorgetWorkbenchShared​(java.lang.String name)
      Loads a workbench Image from its symbolic name defined in org.eclipse.ui.ISharedImages.
      voidregister​(java.lang.Class<? extends GProp<?>> propertyClass, java.lang.String fileName)
      Registers images for property classes.
      voidregister​(java.lang.Class<? extends GProp<?>> propertyClass, org.eclipse.jface.resource.ImageDescriptor descriptor)
      Registers images for property classes.
      booleanremove​(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 Detail

      • 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
      • idPasteLink

        public final org.eclipse.jface.resource.ImageDescriptor idPasteLink
      • 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
      • idLink

        public final org.eclipse.jface.resource.ImageDescriptor idLink
      • 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 Detail

      • getInstance

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

        public void register​(java.lang.Class<? extends GProp<?>> propertyClass,
                             java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.String pluginID,
                                                              java.lang.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​(java.lang.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.