de.cau.cs.kieler.kev
Class Activator

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by de.cau.cs.kieler.kev.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator
extends AbstractUIPlugin

The activator class controls the plug-in life cycle.

Rating proposed yellow
(2010-02-17)

Field Summary
static String PLUGIN_ID
          The plug-in 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
Activator()
          The constructor.
 
Method Summary
static Activator getDefault()
          Returns the shared instance.
 ImageDescriptor getImageDescriptor(String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
static KevView getKevView()
          Return the single instance of the KEV-View.
static boolean isExecutionManagerRunning()
          Indicates whether the KEV-View instance is visible or not.
static void reportDebugMessage(String message)
          Only logs messages for debugging.
static void reportErrorMessage(String message)
          Reports an error message to the eclipse Error Log.
static void reportErrorMessage(String message, Exception e)
          Reports an error message to the eclipse Error Log, with an exception e.
static void reportInfoMessage(String message)
          Only logs messages for debugging.
static void setExecutionManagerStatus(boolean isRunning)
          Set the current visibility status of the KEV-View instance.
static void setKevView(KevView kevView)
          Setting the single instance of KEV-View.
 void start(org.osgi.framework.BundleContext context)
          Starts the bundle.
 void stop(org.osgi.framework.BundleContext context)
          Stops the bundle.
 
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
Constructor Detail

Activator

public Activator()
The constructor.

Method Detail

start

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

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class AbstractUIPlugin
Parameters:
context - The bundlecontext.
Throws:
Exception - A general exception.
See Also:
AbstractUIPlugin.start(org.osgi.framework.BundleContext)

stop

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

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class AbstractUIPlugin
Parameters:
context - The bundlecontext.
Throws:
Exception - A general exception.
See Also:
AbstractUIPlugin.stop(org.osgi.framework.BundleContext)

getDefault

public static Activator getDefault()
Returns the shared instance.

Returns:
the shared instance

setExecutionManagerStatus

public static final void setExecutionManagerStatus(boolean isRunning)
Set the current visibility status of the KEV-View instance.

Parameters:
isRunning - The boolean value for the executionManagerStatus variable.

isExecutionManagerRunning

public static final boolean isExecutionManagerRunning()
Indicates whether the KEV-View instance is visible or not.

Returns:
executionManagerStatus The current status of the executionManager. True means the ExecutionManager is still running, false otherwise.
See Also:
ExecutionManager

setKevView

public static final void setKevView(KevView kevView)
Setting the single instance of KEV-View.

Parameters:
kevView - The new KEV-View object. This object is the current KEV-View instance.

getKevView

public static final KevView getKevView()
Return the single instance of the KEV-View.

Returns:
kevViewInstance The current KEV-View object.

getImageDescriptor

public 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

reportErrorMessage

public static void reportErrorMessage(String message)
Reports an error message to the eclipse Error Log.

Parameters:
message - The message that describes the error.

reportErrorMessage

public static void reportErrorMessage(String message,
                                      Exception e)
Reports an error message to the eclipse Error Log, with an exception e.

Parameters:
message - The message that describes the error.
e - The exception which should be reported.

reportDebugMessage

public static void reportDebugMessage(String message)
Only logs messages for debugging. (use Eclipse -consoleLog) for displaying debug messages.

Parameters:
message - The message that describes the error.

reportInfoMessage

public static void reportInfoMessage(String message)
Only logs messages for debugging. (use Eclipse -consoleLog) for displaying debug messages.

Parameters:
message - The message that describes the error.