Package org.apache.uima.taeconfigurator
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
Modifier and TypeFieldDescriptionstatic 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic TAEConfiguratorPlugin
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
Gets the image.org.eclipse.jface.resource.ImageDescriptor
getImageDescriptor
(String imageFile) Gets the image descriptor.Returns the plugin's resource bundle,.static String
getResourceString
(String key) 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
-
Field Details
-
IMAGE_ANNOTATOR
The Constant IMAGE_ANNOTATOR.- See Also:
-
IMAGE_BIG_AE
The Constant IMAGE_BIG_AE.- See Also:
-
IMAGE_BIG_T_S
The Constant IMAGE_BIG_T_S.- See Also:
-
IMAGE_BLANK
The Constant IMAGE_BLANK.- See Also:
-
IMAGE_COMMON
The Constant IMAGE_COMMON.- See Also:
-
IMAGE_EDITOR
The Constant IMAGE_EDITOR.- See Also:
-
IMAGE_FORM_BANNER
The Constant IMAGE_FORM_BANNER.- See Also:
-
IMAGE_GELB
The Constant IMAGE_GELB.- See Also:
-
IMAGE_GROUP
The Constant IMAGE_GROUP.- See Also:
-
IMAGE_PARAMETER
The Constant IMAGE_PARAMETER.- See Also:
-
IMAGE_T_S
The Constant IMAGE_T_S.- See Also:
-
IMAGE_TH_HORIZONTAL
The Constant IMAGE_TH_HORIZONTAL.- See Also:
-
IMAGE_TH_VERTICAL
The Constant IMAGE_TH_VERTICAL.- See Also:
-
IMAGE_MREFOK
The Constant IMAGE_MREFOK.- See Also:
-
IMAGE_NOMREF
The Constant IMAGE_NOMREF.- See Also:
-
pluginId
The plugin id.
-
-
Constructor Details
-
TAEConfiguratorPlugin
public TAEConfiguratorPlugin()The constructor, version 3.
-
-
Method Details
-
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
Returns the string from the plugin's resource bundle, or 'key' if not found.- Parameters:
key
- the key- Returns:
- the resource string
-
stop
This method is called when the plug-in is stopped.- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classorg.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
Returns the plugin's resource bundle,.- Returns:
- the resource bundle
-
getImage
Gets the image.- Parameters:
imageFile
- the image file- Returns:
- the image
-
getImageDescriptor
Gets the image descriptor.- Parameters:
imageFile
- the image file- Returns:
- the image descriptor
-