Package com.iizigo.db

Class PluginApplicationUI

java.lang.Object
com.iizigo.db.PluginApplicationUI

public class PluginApplicationUI extends Object
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 Details Link icon

    • imageTransaction Link icon

      public final Image imageTransaction
      Image for database transaction.
    • imageTable Link icon

      public final Image imageTable
      Image for database table.
    • imageInput Link icon

      public final Image imageInput
      Image for input properties.
    • imageInputVariable Link icon

      public final Image imageInputVariable
      Image for input an variable.
    • imageResult Link icon

      public final Image imageResult
      Image for result of UPDATE, DELETE, INSERT.
    • imageResultSet Link icon

      public final Image imageResultSet
      Image for result of SELECT.
    • imageResultSetColumn Link icon

      public final Image imageResultSetColumn
      Image for column in result set of SELECT.
    • imageDBActionActor Link icon

      public final Image imageDBActionActor
      Image for database action actor.
  • Method Details Link icon

    • getInstance Link icon

      public static PluginApplicationUI getInstance()
      Gets 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.
    • getImage Link icon

      public Image getImage(String fileName)
      Gets 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.
    • getImage Link icon

      public Image getImage(ImageDescriptor descriptor)
      Loads 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.