public class BaseUiPluginHelper
extends org.eclipse.emf.common.EMFPlugin.InternalHelper
Modifier and Type | Field and Description |
---|---|
static BaseUiPluginHelper |
INSTANCE |
static java.lang.String |
PLUGIN_ID |
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.Status |
createErrorStatus(java.lang.Exception e) |
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in
relative path
|
static void |
log(java.lang.Class clazz,
java.lang.String methodName,
java.lang.Throwable t)
Logs the given throwable to the platform log, indicating the class and
method from where it is being logged (this is not necessarily where it
occurred).
|
static void |
log(java.lang.Exception e)
Logs a message with given level into the Eclipse log file
|
static void |
log(java.lang.String message,
int severity,
java.lang.Exception e)
Logs a message with given level into the Eclipse log file
|
static void |
log(java.lang.String message,
org.eclipse.core.runtime.IStatus status)
Logs the given message and status to the platform log.
|
static void |
log(java.lang.String message,
java.lang.Throwable t)
Logs the given message and throwable to the platform log.
|
public static final java.lang.String PLUGIN_ID
public static final BaseUiPluginHelper INSTANCE
public org.eclipse.core.runtime.Status createErrorStatus(java.lang.Exception e)
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
path
- the pathpublic static void log(java.lang.String message, java.lang.Throwable t)
message
- A high level UI message describing when the problem happened.t
- The throwable from where the problem actually occurred.public static void log(java.lang.String message, org.eclipse.core.runtime.IStatus status)
message
- A high level UI message describing when the problem happened.
May be null
.status
- The status describing the problem. Must not be null.public static void log(java.lang.Class clazz, java.lang.String methodName, java.lang.Throwable t)
clazz
- The calling class.methodName
- The calling method name.t
- The throwable from where the problem actually occurred.public static void log(java.lang.Exception e)
public static void log(java.lang.String message, int severity, java.lang.Exception e)
message
- the message to logseverity
- the message prioritye
- exception to log