Package com.iizigo
Class ImageRegistry
- java.lang.Object
- com.iizigo.ImageRegistry
public class ImageRegistry extends java.lang.Object
The Image Registry holds information about Image Descriptors and Image instances.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description org.eclipse.jface.resource.ImageDescriptor
idCollapseAll
org.eclipse.jface.resource.ImageDescriptor
idCopy
org.eclipse.jface.resource.ImageDescriptor
idCopyDisabled
org.eclipse.jface.resource.ImageDescriptor
idCopyFullPath
org.eclipse.jface.resource.ImageDescriptor
idCopyFullPathDisabled
org.eclipse.jface.resource.ImageDescriptor
idCopyReference
org.eclipse.jface.resource.ImageDescriptor
idCopyReferenceDisabled
org.eclipse.jface.resource.ImageDescriptor
idCut
org.eclipse.jface.resource.ImageDescriptor
idCutDisabled
org.eclipse.jface.resource.ImageDescriptor
idDelete
org.eclipse.jface.resource.ImageDescriptor
idDeleteDisabled
org.eclipse.jface.resource.ImageDescriptor
idErrorDecoration
Decorators.org.eclipse.jface.resource.ImageDescriptor
idExpandAll
org.eclipse.jface.resource.ImageDescriptor
idIIZI
Designer images.org.eclipse.jface.resource.ImageDescriptor
idLink
org.eclipse.jface.resource.ImageDescriptor
idLinkDisabled
org.eclipse.jface.resource.ImageDescriptor
idMove
org.eclipse.jface.resource.ImageDescriptor
idMoveDisabled
org.eclipse.jface.resource.ImageDescriptor
idNewDecoration
org.eclipse.jface.resource.ImageDescriptor
idPaste
org.eclipse.jface.resource.ImageDescriptor
idPasteAfter
org.eclipse.jface.resource.ImageDescriptor
idPasteAfterDisabled
org.eclipse.jface.resource.ImageDescriptor
idPasteBefore
Images provided with this plug-in.org.eclipse.jface.resource.ImageDescriptor
idPasteBeforeDisabled
org.eclipse.jface.resource.ImageDescriptor
idPasteDisabled
org.eclipse.jface.resource.ImageDescriptor
idPasteLink
org.eclipse.jface.resource.ImageDescriptor
idPasteLinkDisabled
org.eclipse.jface.resource.ImageDescriptor
idPrint
org.eclipse.jface.resource.ImageDescriptor
idPrintDisabled
org.eclipse.jface.resource.ImageDescriptor
idRedo
org.eclipse.jface.resource.ImageDescriptor
idRedoDisabled
org.eclipse.jface.resource.ImageDescriptor
idRemove
org.eclipse.jface.resource.ImageDescriptor
idRemoveAll
org.eclipse.jface.resource.ImageDescriptor
idRemoveAllDisabled
org.eclipse.jface.resource.ImageDescriptor
idRemoveDisabled
org.eclipse.jface.resource.ImageDescriptor
idRename
org.eclipse.jface.resource.ImageDescriptor
idRenameDisabled
org.eclipse.jface.resource.ImageDescriptor
idRequiredDecoration
org.eclipse.jface.resource.ImageDescriptor
idSave
org.eclipse.jface.resource.ImageDescriptor
idSaveDisabled
org.eclipse.jface.resource.ImageDescriptor
idSelectAll
org.eclipse.jface.resource.ImageDescriptor
idSelectAllDisabled
org.eclipse.jface.resource.ImageDescriptor
idUndo
Workbench shared images.org.eclipse.jface.resource.ImageDescriptor
idUndoDisabled
org.eclipse.jface.resource.ImageDescriptor
idWarningDecoration
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jface.resource.ImageDescriptor
get(java.lang.Class<? extends GProp<?>> propertyClass)
Gets an Image Descriptor image for a property class.org.eclipse.jface.resource.ImageDescriptor
get(java.lang.String fileName)
Gets an icon Image Descriptor from the iiziGo Plugin's "icons" folder.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.static ImageRegistry
getInstance()
Gets the Image Registry.org.eclipse.jface.resource.ImageDescriptor
getWorkbenchShared(java.lang.String name)
Loads a workbench Image from its symbolic name defined in org.eclipse.ui.ISharedImages.void
register(java.lang.Class<? extends GProp<?>> propertyClass, java.lang.String fileName)
Registers images for property classes.void
register(java.lang.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.
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.