de.cau.cs.kieler.krep.evalbench.ui
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.krep.evalbench.ui.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator
extends AbstractUIPlugin

The activator class controls the plug-in life cycle.

Rating yellow
(2010-03-09) review by msp, soh

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()
           
 
Method Summary
static Activator getDefault()
           
 AssemblerView getViewer()
          Return the uniqe assembler view.
 void setViewer(AssemblerView v)
          Set the AssemblerView to display the current assembler.
 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
Constructor Detail

Activator

public Activator()
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 AbstractUIPlugin
Throws:
Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class AbstractUIPlugin
Throws:
Exception

getDefault

public static Activator getDefault()
Returns:
the shared instance

getViewer

public AssemblerView getViewer()
Return the uniqe assembler view.

Returns:
Viewer to display the current assembler.

setViewer

public void setViewer(AssemblerView v)
Set the AssemblerView to display the current assembler. Only one assembler is shown at a time, as only one assembler can be currently on the processor.

Parameters:
v - the assembler view