edu.cmu.cs.crystal.internal
Class AbstractCrystalPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
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
Fields inherited from class org.eclipse.core.runtime.Plugin |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
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 |
AbstractCrystalPlugin
public AbstractCrystalPlugin()
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)