org.eclipse.ocl.examples.debug.ui
Class OCLDebugUIPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.ocl.examples.debug.ui.OCLDebugUIPlugin
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator
public class OCLDebugUIPlugin
- extends org.eclipse.ui.plugin.AbstractUIPlugin
The activator class controls the plug-in life cycle
Fields inherited from class org.eclipse.core.runtime.Plugin |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Method Summary |
static org.eclipse.emf.common.util.BasicDiagnostic |
createDiagnostic(java.lang.String message)
|
static org.eclipse.emf.common.util.Diagnostic |
createErrorDiagnostic(java.lang.String message,
java.lang.Throwable throwable)
|
static org.eclipse.core.runtime.IStatus |
createErrorStatus(java.lang.String message)
|
org.eclipse.swt.graphics.Image |
createImage(java.lang.String path)
|
protected org.eclipse.jface.resource.ImageRegistry |
createImageRegistry()
|
static org.eclipse.core.runtime.IStatus |
createStatus(int severity,
java.lang.String message)
|
static org.eclipse.emf.common.util.Diagnostic |
createWarnDiagnostic(java.lang.String message)
|
static org.eclipse.swt.widgets.Shell |
getActiveWorkbenchShell()
Returns the active workbench shell or null if none |
static org.eclipse.ui.IWorkbenchWindow |
getActiveWorkbenchWindow()
Returns the active workbench window |
static OCLDebugUIPlugin |
getDefault()
Returns the shared instance |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String path)
|
protected org.eclipse.jface.resource.ImageRegistry |
getImageDescriptorRegistry()
|
static org.eclipse.swt.widgets.Display |
getStandardDisplay()
|
static boolean |
isSuccess(org.eclipse.emf.common.util.Diagnostic diagnostic)
Indicates that the given diagnostic is neither error or canceled. |
static void |
log(int severity,
int code,
java.lang.String message,
java.lang.Throwable throwable)
|
static void |
log(org.eclipse.core.runtime.IStatus status)
|
static void |
log(java.lang.Throwable e)
|
void |
start(org.osgi.framework.BundleContext context)
|
static void |
statusDialog(org.eclipse.core.runtime.IStatus status)
|
static void |
statusDialog(java.lang.String title,
org.eclipse.core.runtime.IStatus status)
|
void |
stop(org.osgi.framework.BundleContext context)
|
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
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 |
PLUGIN_ID
public static final java.lang.String PLUGIN_ID
- See Also:
- Constant Field Values
DEBUG_EDITOR_ID
public static final java.lang.String DEBUG_EDITOR_ID
- See Also:
- Constant Field Values
imageDescriptorRegistry
protected org.eclipse.jface.resource.ImageRegistry imageDescriptorRegistry
OCLDebugUIPlugin
public OCLDebugUIPlugin()
- The constructor
start
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Specified by:
start
in interface org.osgi.framework.BundleActivator
- Overrides:
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
java.lang.Exception
stop
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Specified by:
stop
in interface org.osgi.framework.BundleActivator
- Overrides:
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
java.lang.Exception
getDefault
public static OCLDebugUIPlugin getDefault()
- Returns the shared instance
- Returns:
- the shared instance
createImage
public org.eclipse.swt.graphics.Image createImage(java.lang.String path)
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
getImageDescriptorRegistry
protected org.eclipse.jface.resource.ImageRegistry getImageDescriptorRegistry()
createDiagnostic
public static org.eclipse.emf.common.util.BasicDiagnostic createDiagnostic(java.lang.String message)
createErrorDiagnostic
public static org.eclipse.emf.common.util.Diagnostic createErrorDiagnostic(java.lang.String message,
java.lang.Throwable throwable)
createWarnDiagnostic
public static org.eclipse.emf.common.util.Diagnostic createWarnDiagnostic(java.lang.String message)
isSuccess
public static boolean isSuccess(org.eclipse.emf.common.util.Diagnostic diagnostic)
- Indicates that the given diagnostic is neither error or canceled.
- Parameters:
diagnostic
- the diagnostic to test
- Returns:
true
in case of success, false
otherwise
log
public static void log(int severity,
int code,
java.lang.String message,
java.lang.Throwable throwable)
log
public static void log(org.eclipse.core.runtime.IStatus status)
log
public static void log(java.lang.Throwable e)
getStandardDisplay
public static final org.eclipse.swt.widgets.Display getStandardDisplay()
getActiveWorkbenchWindow
public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
- Returns the active workbench window
- Returns:
- the active workbench window
getActiveWorkbenchShell
public static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
- Returns the active workbench shell or
null
if none
- Returns:
- the active workbench shell or
null
if none
createStatus
public static org.eclipse.core.runtime.IStatus createStatus(int severity,
java.lang.String message)
createErrorStatus
public static org.eclipse.core.runtime.IStatus createErrorStatus(java.lang.String message)
statusDialog
public static void statusDialog(org.eclipse.core.runtime.IStatus status)
statusDialog
public static void statusDialog(java.lang.String title,
org.eclipse.core.runtime.IStatus status)
createImageRegistry
protected org.eclipse.jface.resource.ImageRegistry createImageRegistry()
- Overrides:
createImageRegistry
in class org.eclipse.ui.plugin.AbstractUIPlugin