public class OCLDebugUIPlugin
extends AbstractUIPlugin
Constructor and Description |
---|
OCLDebugUIPlugin()
The constructor
|
Modifier and Type | Method and Description |
---|---|
static BasicDiagnostic |
createDiagnostic(String message) |
static Diagnostic |
createErrorDiagnostic(String message,
Throwable throwable) |
static IStatus |
createErrorStatus(String message) |
Image |
createImage(String path) |
static IStatus |
createStatus(int severity,
String message) |
static Diagnostic |
createWarnDiagnostic(String message) |
static Shell |
getActiveWorkbenchShell()
Returns the active workbench shell or
null if none |
static IWorkbenchWindow |
getActiveWorkbenchWindow()
Returns the active workbench window
|
static OCLDebugUIPlugin |
getDefault()
Returns the shared instance
|
ImageDescriptor |
getImageDescriptor(String path) |
static Display |
getStandardDisplay() |
static boolean |
isSuccess(Diagnostic diagnostic)
Indicates that the given diagnostic is neither error or canceled.
|
static void |
log(int severity,
int code,
String message,
Throwable throwable) |
static void |
log(IStatus status) |
void |
start(BundleContext context) |
void |
stop(BundleContext context) |
public static final String PLUGIN_ID
public static OCLDebugUIPlugin getDefault()
public Image createImage(String path)
public ImageDescriptor getImageDescriptor(String path)
public static BasicDiagnostic createDiagnostic(String message)
public static Diagnostic createErrorDiagnostic(String message, Throwable throwable)
public static Diagnostic createWarnDiagnostic(String message)
public static boolean isSuccess(Diagnostic diagnostic)
diagnostic
- the diagnostic to testtrue
in case of success, false
otherwisepublic static void log(IStatus status)
public static final Display getStandardDisplay()
public static IWorkbenchWindow getActiveWorkbenchWindow()
public static Shell getActiveWorkbenchShell()
null
if nonenull
if nonepublic static IStatus createStatus(int severity, String message)
public static IStatus createErrorStatus(String message)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.