Package com.iizigo.db
Class PluginApplicationUI
java.lang.Object
com.iizigo.db.PluginApplicationUI
The Plug-in ApplicationUI instance holds the various images loaded from Image Descriptors and can be used as SWT Images directly, as well as other SWT allocated object such as colors.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- final ImageImage for database action actor.- final ImageImage for input properties.- final ImageImage for input an variable.- final ImageImage for result of UPDATE, DELETE, INSERT.- final ImageImage for result of SELECT.- final ImageImage for column in result set of SELECT.- final ImageImage for database table.- final ImageImage for database transaction.
- Method SummaryModifier and TypeMethodDescriptionGets an Image from a file name.- getImage- (ImageDescriptor descriptor) Loads the image for an Image Descriptor and caches it.- static PluginApplicationUIGets the instance of the ApplicationUI.
- Field Details- imageTransactionImage for database transaction.
- imageTableImage for database table.
- imageInputImage for input properties.
- imageInputVariableImage for input an variable.
- imageResultImage for result of UPDATE, DELETE, INSERT.
- imageResultSetImage for result of SELECT.
- imageResultSetColumnImage for column in result set of SELECT.
- imageDBActionActorImage for database action actor.
 
- Method Details- getInstanceGets the instance of the ApplicationUI. The first time this is done, it must be from the SWT thread, otherwise an InternalError is thrown.- Returns:
- The singleton.
 
- getImageGets an Image from a file name.- Parameters:
- fileName- The file name loads a descriptor from the "icons" folder.
- Returns:
- The image, or null if not found.
 
- getImageLoads the image for an Image Descriptor and caches it. It will be disposed of when the plug-in exits.- Parameters:
- descriptor- The Image Descriptor or null if none.
- Returns:
- The image created, null for none or when Image Descriptor is null.