Class TAEConfiguratorPlugin

java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.apache.uima.taeconfigurator.TAEConfiguratorPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class TAEConfiguratorPlugin extends org.eclipse.ui.plugin.AbstractUIPlugin
The main plugin class to be used in the desktop.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The Constant IMAGE_ANNOTATOR.
    static final String
    The Constant IMAGE_BIG_AE.
    static final String
    The Constant IMAGE_BIG_T_S.
    static final String
    The Constant IMAGE_BLANK.
    static final String
    The Constant IMAGE_COMMON.
    static final String
    The Constant IMAGE_EDITOR.
    static final String
    The Constant IMAGE_FORM_BANNER.
    static final String
    The Constant IMAGE_GELB.
    static final String
    The Constant IMAGE_GROUP.
    static final String
    The Constant IMAGE_MREFOK.
    static final String
    The Constant IMAGE_NOMREF.
    static final String
    The Constant IMAGE_PARAMETER.
    static final String
    The Constant IMAGE_T_S.
    static final String
    The Constant IMAGE_TH_HORIZONTAL.
    static final String
    The Constant IMAGE_TH_VERTICAL.
    static String
    The plugin id.

    Fields inherited from class org.eclipse.core.runtime.Plugin

    PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    The constructor, version 3.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the shared instance.
    org.eclipse.ui.forms.FormColors
    getFormColors(org.eclipse.swt.widgets.Display display)
    On first call, gets a formColors instance; on subsequent calls, returns that instance.
    static org.eclipse.swt.graphics.Image
    getImage(String imageFile)
    Gets the image.
    org.eclipse.jface.resource.ImageDescriptor
    Gets the image descriptor.
    Returns the plugin's resource bundle,.
    static String
    Returns the string from the plugin's resource bundle, or 'key' if not found.
    static org.eclipse.core.resources.IWorkspace
    Returns the workspace instance.
    void
    stop(org.osgi.framework.BundleContext context)
    This method is called when the plug-in is stopped.

    Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin

    createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, start, startup

    Methods inherited from class org.eclipse.core.runtime.Plugin

    find, find, getBundle, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • TAEConfiguratorPlugin

      public TAEConfiguratorPlugin()
      The constructor, version 3.
  • Method Details

    • getDefault

      public static TAEConfiguratorPlugin getDefault()
      Returns the shared instance.
      Returns:
      the default
    • getWorkspace

      public static org.eclipse.core.resources.IWorkspace getWorkspace()
      Returns the workspace instance.
      Returns:
      the workspace
    • getResourceString

      public static String getResourceString(String key)
      Returns the string from the plugin's resource bundle, or 'key' if not found.
      Parameters:
      key - the key
      Returns:
      the resource string
    • stop

      public void stop(org.osgi.framework.BundleContext context) throws Exception
      This method is called when the plug-in is stopped.
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
      Overrides:
      stop in class org.eclipse.ui.plugin.AbstractUIPlugin
      Parameters:
      context - the context
      Throws:
      Exception - -
    • getFormColors

      public org.eclipse.ui.forms.FormColors getFormColors(org.eclipse.swt.widgets.Display display)
      On first call, gets a formColors instance; on subsequent calls, returns that instance.
      Parameters:
      display - the display
      Returns:
      a formColors instance
    • getResourceBundle

      public ResourceBundle getResourceBundle()
      Returns the plugin's resource bundle,.
      Returns:
      the resource bundle
    • getImage

      public static org.eclipse.swt.graphics.Image getImage(String imageFile)
      Gets the image.
      Parameters:
      imageFile - the image file
      Returns:
      the image
    • getImageDescriptor

      public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String imageFile)
      Gets the image descriptor.
      Parameters:
      imageFile - the image file
      Returns:
      the image descriptor