pl.edu.agh.cast
Class Activator

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by pl.edu.agh.cast.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator
extends org.eclipse.ui.plugin.AbstractUIPlugin

The activator class controls the plug-in life cycle.

Author:
AGH CAST Team

Field Summary
static String NO_STD_OUT_ERR_REDIRECT
          The application argument flag for switching off standard output and error stream redirection.
static String NODE_ICON_FACTORY
          Name of the factory attribute of pl.edu.agh.cast.nodeIcons extension point.
static String PLUGIN_ID
          The plugin ID.
static String RESOURCE_TAG_DATA_MODEL
          Tag for visual resources used in editors.
static String RESOURCE_TAG_EDITOR
          Tag for visual resources used in editors.
static String STATISTIC_CLASS
          Name of the point attribute of pl.edu.agh.cast.statistics extension point.
static String STATISTIC_DESCRIPTION
          Name of the description attribute of pl.edu.agh.cast.statistics extension point.
static String STATISTIC_NAME
          Name of the name attribute of pl.edu.agh.cast.statistics extension point.
static String STATISTIC_SOURCE_LABEL
          Name of the source_label attribute of pl.edu.agh.cast.statistics extension point.
static String STATISTIC_TARGET_LABEL
          Name of the target_label attribute of pl.edu.agh.cast.statistics extension point.
static String STD_OUT_ERR_FILE
          The name of the standard output and error stream redirection file.
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
Activator()
          The constructor.
 
Method Summary
static List<ConverterReference> getDataSetConverterReferences()
          Returns list of ConverterSpecification read from extension point pl.edu.agh.cast.data.converter.
static Activator getDefault()
          Returns the shared instance.
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
static org.apache.log4j.Logger getLogger()
          Returns Logger instance for this plugin.
static org.eclipse.core.runtime.IConfigurationElement[] getNodeIconsConfigurations()
          Returns configurations of extensions for pl.edu.agh.cast.nodeIcons extension point.
static List<IVisualResourcesProvider> getResourcesProviders()
          Returns list of IVisualResourcesProvider providers read from extension point pl.edu.agh.cast.resource.provider.
static org.eclipse.core.runtime.IConfigurationElement[] getStatisticsConfigurations()
          Returns configurations of extensions for pl.edu.agh.cast.statistics extension point.
 void start(org.osgi.framework.BundleContext context)
          
 void stop(org.osgi.framework.BundleContext context)
          
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, 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 Detail

PLUGIN_ID

public static final String PLUGIN_ID
The plugin ID.

See Also:
Constant Field Values

STD_OUT_ERR_FILE

public static final String STD_OUT_ERR_FILE
The name of the standard output and error stream redirection file.

See Also:
Constant Field Values

NO_STD_OUT_ERR_REDIRECT

public static final String NO_STD_OUT_ERR_REDIRECT
The application argument flag for switching off standard output and error stream redirection.

See Also:
Constant Field Values

STATISTIC_NAME

public static final String STATISTIC_NAME
Name of the name attribute of pl.edu.agh.cast.statistics extension point.

See Also:
Constant Field Values

STATISTIC_CLASS

public static final String STATISTIC_CLASS
Name of the point attribute of pl.edu.agh.cast.statistics extension point.

See Also:
Constant Field Values

STATISTIC_TARGET_LABEL

public static final String STATISTIC_TARGET_LABEL
Name of the target_label attribute of pl.edu.agh.cast.statistics extension point.

See Also:
Constant Field Values

STATISTIC_SOURCE_LABEL

public static final String STATISTIC_SOURCE_LABEL
Name of the source_label attribute of pl.edu.agh.cast.statistics extension point.

See Also:
Constant Field Values

STATISTIC_DESCRIPTION

public static final String STATISTIC_DESCRIPTION
Name of the description attribute of pl.edu.agh.cast.statistics extension point.

See Also:
Constant Field Values

NODE_ICON_FACTORY

public static final String NODE_ICON_FACTORY
Name of the factory attribute of pl.edu.agh.cast.nodeIcons extension point.

See Also:
Constant Field Values

RESOURCE_TAG_EDITOR

public static final String RESOURCE_TAG_EDITOR
Tag for visual resources used in editors.

See Also:
IVisualResource, Constant Field Values

RESOURCE_TAG_DATA_MODEL

public static final String RESOURCE_TAG_DATA_MODEL
Tag for visual resources used in editors.

See Also:
IVisualResource, Constant Field Values
Constructor Detail

Activator

public Activator()
The constructor.

Method Detail

getLogger

public static org.apache.log4j.Logger getLogger()
Returns Logger instance for this plugin.

Returns:
Logger instance

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
Exception
See Also:
AbstractUIPlugin.start(org.osgi.framework.BundleContext)

stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
Exception
See Also:
AbstractUIPlugin.stop(org.osgi.framework.BundleContext)

getDefault

public static Activator getDefault()
Returns the shared instance.

Returns:
the shared instance

getImageDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String path)
Returns an image descriptor for the image file at the given plug-in relative path.

Parameters:
path - the path
Returns:
the image descriptor

getStatisticsConfigurations

public static org.eclipse.core.runtime.IConfigurationElement[] getStatisticsConfigurations()
Returns configurations of extensions for pl.edu.agh.cast.statistics extension point.

Returns:
array of configurations

getNodeIconsConfigurations

public static org.eclipse.core.runtime.IConfigurationElement[] getNodeIconsConfigurations()
Returns configurations of extensions for pl.edu.agh.cast.nodeIcons extension point.

Returns:
array of configurations

getResourcesProviders

public static List<IVisualResourcesProvider> getResourcesProviders()
Returns list of IVisualResourcesProvider providers read from extension point pl.edu.agh.cast.resource.provider. All errors during providers initialization are logged and ignored.

Returns:
list of visual resources providers; if none, the empty list is returned

getDataSetConverterReferences

public static List<ConverterReference> getDataSetConverterReferences()
Returns list of ConverterSpecification read from extension point pl.edu.agh.cast.data.converter. All errors during converter initialization are logged and ignored.

Returns:
list of converter specifications; if none, the empty list is returned


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.