public class OCLDebugUIPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jface.resource.ImageRegistry |
imageDescriptorRegistry |
static java.lang.String |
PLUGIN_ID |
Constructor and Description |
---|
OCLDebugUIPlugin()
The constructor
|
Modifier and Type | Method and Description |
---|---|
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) |
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) |
void |
stop(org.osgi.framework.BundleContext context) |
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
public static final java.lang.String PLUGIN_ID
protected org.eclipse.jface.resource.ImageRegistry imageDescriptorRegistry
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public static OCLDebugUIPlugin getDefault()
public org.eclipse.swt.graphics.Image createImage(java.lang.String path)
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
protected org.eclipse.jface.resource.ImageRegistry getImageDescriptorRegistry()
public static org.eclipse.emf.common.util.BasicDiagnostic createDiagnostic(java.lang.String message)
public static org.eclipse.emf.common.util.Diagnostic createErrorDiagnostic(java.lang.String message, java.lang.Throwable throwable)
public static org.eclipse.emf.common.util.Diagnostic createWarnDiagnostic(java.lang.String message)
public static boolean isSuccess(org.eclipse.emf.common.util.Diagnostic diagnostic)
diagnostic
- the diagnostic to testtrue
in case of success, false
otherwisepublic static void log(int severity, int code, java.lang.String message, java.lang.Throwable throwable)
public static void log(org.eclipse.core.runtime.IStatus status)
public static void log(java.lang.Throwable e)
public static final org.eclipse.swt.widgets.Display getStandardDisplay()
public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
public static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
null
if nonenull
if nonepublic static org.eclipse.core.runtime.IStatus createStatus(int severity, java.lang.String message)
public static org.eclipse.core.runtime.IStatus createErrorStatus(java.lang.String message)