pl.edu.agh.cast.model.base
Class BasePlugin

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

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

The activator class controls the plug-in life cycle.

Author:
AGH CAST Team

Field Summary
static String ABSTRACT_MODEL_ID
          Abstract model extension id.
static String ATTRIBUTE
          Attribute node in the model exsd.
static String ATTRIBUTE_ID
          Attribute id attribute in the model exsd.
static String ATTRIBUTE_NAME
          Attribute name attribute in the model exsd.
static String COLUMN
          Column node in the model exsd (extension point definition file).
static String COLUMN_DEFAULTVALUE
          Column default value attribute in the model exsd.
static String COLUMN_ID
          Column id attribute in the model exsd.
static String COLUMN_MODEL_INDEX
          Column model index attribute in the model exsd.
static String COLUMN_NAME
          Column name attribute in the model exsd.
static String COLUMN_OPTIONAL
          Column optional value in the model exsd.
static String COLUMN_REQUIRED
          Column required value in the model exsd.
static String COLUMN_TYPE
          Column type attribute in the model exsd.
static String COLUMN_TYPE_BOOLEAN
          Column type boolean value in the model exsd.
static String COLUMN_TYPE_DATE
          Column type date value in the model exsd.
static String COLUMN_TYPE_DOUBLE
          Column type double value in the model exsd.
static String COLUMN_TYPE_LONG
          Column type long value in the model exsd.
static String COLUMN_TYPE_STRING
          Column type string value in the model exsd.
static String COLUMN_USE
          Column use attribute in the model exsd.
static String DATE_ATTRIBUTE_NAME
          Date attribute name for Relation and TimedRelation in the model exsd.
static String LOADER
          Loader node in the model exsd.
static String MODEL_EXTENSION_ID
          Model extension point id.
static String MODEL_ID
          Model id attribute in the model exsd.
static String MODEL_NAME
          Model name attribute in the model exsd.
static String PARAMETER
          Parameter node in the model exsd.
static String PARAMETER_ID
          Parameter id attribute in the model exsd.
static String PARAMETER_NAME
          Parameter name attribute in the model exsd.
static String PLUGIN_ID
          The plug-in ID.
static String SOURCE_ATTRIBUTE_NAME
          Source attribute name for Relation and TimedRelation in the model exsd.
static String TARGET_ATTRIBUTE_NAME
          Target attribute name for Relation and TimedRelation in the model exsd.
static String TYPE
          Type node in the model exsd.
static String TYPE_ID
          Type id attribute in the model exsd.
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
BasePlugin()
          The default constructor.
 
Method Summary
static BasePlugin getDefault()
          Returns the shared instance.
static org.apache.log4j.Logger getLogger()
          The default logger of the plug-in.
static org.eclipse.core.runtime.IConfigurationElement[] getModelConfigurations()
          Returns configurations (extensions description) for all models - extension point pl.edu.agh.cast.model .
 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 plug-in ID.

See Also:
Constant Field Values

MODEL_EXTENSION_ID

public static final String MODEL_EXTENSION_ID
Model extension point id.

See Also:
Constant Field Values

ABSTRACT_MODEL_ID

public static final String ABSTRACT_MODEL_ID
Abstract model extension id.

See Also:
Constant Field Values

COLUMN

public static final String COLUMN
Column node in the model exsd (extension point definition file).

See Also:
Constant Field Values

COLUMN_DEFAULTVALUE

public static final String COLUMN_DEFAULTVALUE
Column default value attribute in the model exsd.

See Also:
Constant Field Values

COLUMN_MODEL_INDEX

public static final String COLUMN_MODEL_INDEX
Column model index attribute in the model exsd.

See Also:
Constant Field Values

COLUMN_NAME

public static final String COLUMN_NAME
Column name attribute in the model exsd.

See Also:
Constant Field Values

COLUMN_USE

public static final String COLUMN_USE
Column use attribute in the model exsd.

See Also:
Constant Field Values

COLUMN_ID

public static final String COLUMN_ID
Column id attribute in the model exsd.

See Also:
Constant Field Values

COLUMN_TYPE

public static final String COLUMN_TYPE
Column type attribute in the model exsd.

See Also:
Constant Field Values

PARAMETER

public static final String PARAMETER
Parameter node in the model exsd.

See Also:
Constant Field Values

PARAMETER_ID

public static final String PARAMETER_ID
Parameter id attribute in the model exsd.

See Also:
Constant Field Values

PARAMETER_NAME

public static final String PARAMETER_NAME
Parameter name attribute in the model exsd.

See Also:
Constant Field Values

LOADER

public static final String LOADER
Loader node in the model exsd.

See Also:
Constant Field Values

MODEL_NAME

public static final String MODEL_NAME
Model name attribute in the model exsd.

See Also:
Constant Field Values

MODEL_ID

public static final String MODEL_ID
Model id attribute in the model exsd.

See Also:
Constant Field Values

COLUMN_REQUIRED

public static final String COLUMN_REQUIRED
Column required value in the model exsd.

See Also:
Constant Field Values

COLUMN_OPTIONAL

public static final String COLUMN_OPTIONAL
Column optional value in the model exsd.

See Also:
Constant Field Values

COLUMN_TYPE_STRING

public static final String COLUMN_TYPE_STRING
Column type string value in the model exsd.

See Also:
Constant Field Values

COLUMN_TYPE_LONG

public static final String COLUMN_TYPE_LONG
Column type long value in the model exsd.

See Also:
Constant Field Values

COLUMN_TYPE_DOUBLE

public static final String COLUMN_TYPE_DOUBLE
Column type double value in the model exsd.

See Also:
Constant Field Values

COLUMN_TYPE_DATE

public static final String COLUMN_TYPE_DATE
Column type date value in the model exsd.

See Also:
Constant Field Values

COLUMN_TYPE_BOOLEAN

public static final String COLUMN_TYPE_BOOLEAN
Column type boolean value in the model exsd.

See Also:
Constant Field Values

TYPE

public static final String TYPE
Type node in the model exsd.

See Also:
Constant Field Values

TYPE_ID

public static final String TYPE_ID
Type id attribute in the model exsd.

See Also:
Constant Field Values

ATTRIBUTE

public static final String ATTRIBUTE
Attribute node in the model exsd.

See Also:
Constant Field Values

ATTRIBUTE_ID

public static final String ATTRIBUTE_ID
Attribute id attribute in the model exsd.

See Also:
Constant Field Values

ATTRIBUTE_NAME

public static final String ATTRIBUTE_NAME
Attribute name attribute in the model exsd.

See Also:
Constant Field Values

SOURCE_ATTRIBUTE_NAME

public static final String SOURCE_ATTRIBUTE_NAME
Source attribute name for Relation and TimedRelation in the model exsd.

See Also:
Constant Field Values

TARGET_ATTRIBUTE_NAME

public static final String TARGET_ATTRIBUTE_NAME
Target attribute name for Relation and TimedRelation in the model exsd.

See Also:
Constant Field Values

DATE_ATTRIBUTE_NAME

public static final String DATE_ATTRIBUTE_NAME
Date attribute name for Relation and TimedRelation in the model exsd.

See Also:
Constant Field Values
Constructor Detail

BasePlugin

public BasePlugin()
The default constructor.

Method Detail

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 BasePlugin getDefault()
Returns the shared instance.

Returns:
the shared instance

getLogger

public static org.apache.log4j.Logger getLogger()
The default logger of the plug-in.

Returns:
The plug-in logger.

getModelConfigurations

public static org.eclipse.core.runtime.IConfigurationElement[] getModelConfigurations()
Returns configurations (extensions description) for all models - extension point pl.edu.agh.cast.model .

Returns:
Array of configurations.


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