de.cau.cs.kieler.klots
Class KlotsPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
de.cau.cs.kieler.klots.KlotsPlugin
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator
public class KlotsPlugin
- extends AbstractUIPlugin
- Rating

Constructor Summary |
KlotsPlugin()
The constructor of the ABRO plug-in. |
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 |
PLUGIN_ID
public static final String PLUGIN_ID
- The Constant PLUGIN_ID.
- See Also:
- Constant Field Values
KlotsPlugin
public KlotsPlugin()
- The constructor of the ABRO plug-in.
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 KlotsPlugin getDefault()
- Returns the shared instance of this plug-in.
- Returns:
- the shared instance
getColorProvider
public static ColorProvider getColorProvider()
- Returns:
- ColorProvider the color provider.
getSJInstructionsView
public static SJInstructionsView getSJInstructionsView()
- Returns:
- SJInstructionsView the SJ instructions view instance.
getKlotsEditorID
public static String getKlotsEditorID()
- Returns:
- String the KLOTS editor ID.
showWarning
public void showWarning(String textMessage,
String pluginID,
Exception exception,
boolean silent)
- Shows a warning dialog using the StatusAdapter. This dialog will *NOT* be modal, so that the
user is notified but the current work is not interrupted.
Additionally the information will be logged in the error log so that the user has the
opportunity to e.g., access the error stack trace. The plug-in id is required, textMessage
and exception are optional.
- Parameters:
textMessage
- the text messagepluginID
- the plug-in idexception
- the exceptionsilent
- the silent tag indicates that only logging occurs, no message dialog is displayed
showError
public void showError(String textMessage,
String pluginID,
Exception exception,
boolean silent)
- Shows an error dialog using the StatusAdapter. This dialog will be modal, so that the user
has to click OK to end it. Additionally the information will be logged in the error log so
that the user has the opportunity to e.g., access the error stack trace. The plug-in id is
required, textMessage and exception are optional.
- Parameters:
textMessage
- the optional text messagepluginID
- the plug-in idexception
- the exception if any, null otherwisesilent
- the silent tag indicates that only logging occurs, no message dialog is displayed