edu.cmu.cs.crystal.internal
Class AbstractCrystalPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by edu.cmu.cs.crystal.internal.AbstractCrystalPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator
Direct Known Subclasses:
CrystalPlugin

public abstract class AbstractCrystalPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

Provided Crystal plugin functionality

Author:
David Dickey, Jonathan Aldrich

Field Summary
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
AbstractCrystalPlugin()
           
 
Method Summary
static void disableAnalysis(String analysis_name)
          Remove the given name from the set of analyses that are enabled.
static void enableAnalysis(String analysis_name)
          Add the given name to the set of analyses that are enabled.
static Crystal getCrystalInstance()
           
static Set<String> getEnabledAnalyses()
          Returns the set of analyses that are enabled at the moment this method is called.
abstract  void setupCrystalAnalyses(Crystal crystal)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractCrystalPlugin

public AbstractCrystalPlugin()
Method Detail

getEnabledAnalyses

public static Set<String> getEnabledAnalyses()
Returns the set of analyses that are enabled at the moment this method is called.


enableAnalysis

public static void enableAnalysis(String analysis_name)
Add the given name to the set of analyses that are enabled. Note that if there is no analysis with this name, no error will be reported!


disableAnalysis

public static void disableAnalysis(String analysis_name)
Remove the given name from the set of analyses that are enabled. Note that if there is no analysis with this name, no error will be reported!


getCrystalInstance

public static Crystal getCrystalInstance()

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

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

setupCrystalAnalyses

public abstract void setupCrystalAnalyses(Crystal crystal)