public class DefinitionImages extends Object implements CommonSharedImagesConstants
dispose()
d when the images
are not used any more.IMG_ADD, IMG_DECORATION_MANDATORY, IMG_DEFINITION_ABSTRACT_FT, IMG_DEFINITION_ABSTRACT_TYPE, IMG_DEFINITION_CHOICE, IMG_DEFINITION_CONCRETE_FT, IMG_DEFINITION_CONCRETE_TYPE, IMG_DEFINITION_GEOMETRIC_PROPERTY, IMG_DEFINITION_GROUP, IMG_DEFINITION_NUMERIC_PROPERTY, IMG_DEFINITION_STRING_PROPERTY, IMG_FILTER_CLEAR, IMG_FILTER_GREY, IMG_INHERITED_ARROW, IMG_INHERITED_ARROW_SMALL, IMG_MARKER_GREEN, IMG_MARKER_RED, IMG_MARKER_YELLOW, IMG_META, IMG_OPEN, IMG_PLAY, IMG_PRIORITY_HIGH, IMG_PRIORITY_LOW, IMG_PRIORITY_LOWEST, IMG_PRIORITY_NORMAL, IMG_REFRESH, IMG_REMOVE, IMG_SIGNED_NO, IMG_SIGNED_YES, IMG_STOP, IMG_TRAFFICLIGHT_GREEN, IMG_TRAFFICLIGHT_RED, IMG_TRAFFICLIGHT_YELLOW, IMG_TRASH
Constructor and Description |
---|
DefinitionImages() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose all images.
|
org.eclipse.swt.graphics.Image |
getImage(Definition<?> def)
Get the image for the given definition
|
org.eclipse.swt.graphics.Image |
getImage(EntityDefinition entityDef)
Get the image for the given entity definition
|
protected org.eclipse.swt.graphics.Image |
getImage(EntityDefinition entityDef,
Definition<?> def)
Get the image for the given definition
|
boolean |
isSuppressMandatory() |
void |
setSuppressMandatory(boolean suppressMandatory) |
public void dispose()
getImage(Definition)
may not be called after
calling this method.public org.eclipse.swt.graphics.Image getImage(Definition<?> def)
def
- the definitionnull
public org.eclipse.swt.graphics.Image getImage(EntityDefinition entityDef)
entityDef
- the entity definitionnull
protected org.eclipse.swt.graphics.Image getImage(EntityDefinition entityDef, Definition<?> def)
entityDef
- the entity definition, may be null
def
- the definitionnull
public boolean isSuppressMandatory()
public void setSuppressMandatory(boolean suppressMandatory)
suppressMandatory
- the suppressMandatory to setBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a