public class StatusUtil
extends java.lang.Object
Constructor and Description |
---|
StatusUtil() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.core.runtime.IStatus |
createErrorStatus(org.osgi.framework.Bundle bundle,
java.lang.Object object) |
static org.eclipse.core.runtime.IStatus |
createErrorStatus(org.eclipse.core.runtime.Plugin plugin,
java.lang.Object object) |
static org.eclipse.core.runtime.IStatus |
createInfoStatus(org.osgi.framework.Bundle bundle,
java.lang.Object object) |
static org.eclipse.core.runtime.IStatus |
createInfoStatus(org.eclipse.core.runtime.Plugin plugin,
java.lang.Object object) |
static org.eclipse.core.runtime.IStatus |
createMultiErrorStatus(org.eclipse.core.runtime.Plugin plugin,
int aCode,
java.lang.String aMessage,
java.util.List<java.lang.Throwable> exceptions,
java.lang.Throwable exception) |
static org.eclipse.core.runtime.IStatus |
createStatus(int severity,
int aCode,
java.lang.String aMessage,
java.lang.String pluginId,
java.lang.Throwable exception)
Creates a status object associated with the plug-in.
|
static org.eclipse.core.runtime.IStatus |
createWarningStatus(org.osgi.framework.Bundle bundle,
java.lang.Object object) |
static org.eclipse.core.runtime.IStatus |
createWarningStatus(org.eclipse.core.runtime.Plugin plugin,
java.lang.Object object) |
static org.eclipse.core.runtime.IStatus |
getMoreSevereStatus(org.eclipse.core.runtime.IStatus firstStatus,
org.eclipse.core.runtime.IStatus secondStatus)
Compares two instances of
IStatus . |
static org.eclipse.core.runtime.IStatus |
getMostSevereStatus(org.eclipse.core.runtime.IStatus[] status)
Finds the most severe status from a array of status.
|
public static org.eclipse.core.runtime.IStatus createStatus(int severity, int aCode, java.lang.String aMessage, java.lang.String pluginId, java.lang.Throwable exception)
severity
- the severity; one of OK
, ERROR
, INFO
, WARNING
, or
CANCEL
aCode
- the plug-in-specific status code, or OK
aMessage
- a human-readable message, localized to the current localeexception
- a low-level exception, or null
if not applicablepluginId
- the unique identifier of the relevant plug-inpublic static org.eclipse.core.runtime.IStatus createMultiErrorStatus(org.eclipse.core.runtime.Plugin plugin, int aCode, java.lang.String aMessage, java.util.List<java.lang.Throwable> exceptions, java.lang.Throwable exception)
public static org.eclipse.core.runtime.IStatus createErrorStatus(org.eclipse.core.runtime.Plugin plugin, java.lang.Object object)
public static org.eclipse.core.runtime.IStatus createErrorStatus(org.osgi.framework.Bundle bundle, java.lang.Object object)
public static org.eclipse.core.runtime.IStatus createWarningStatus(org.eclipse.core.runtime.Plugin plugin, java.lang.Object object)
public static org.eclipse.core.runtime.IStatus createWarningStatus(org.osgi.framework.Bundle bundle, java.lang.Object object)
public static org.eclipse.core.runtime.IStatus createInfoStatus(org.eclipse.core.runtime.Plugin plugin, java.lang.Object object)
public static org.eclipse.core.runtime.IStatus createInfoStatus(org.osgi.framework.Bundle bundle, java.lang.Object object)
public static org.eclipse.core.runtime.IStatus getMoreSevereStatus(org.eclipse.core.runtime.IStatus firstStatus, org.eclipse.core.runtime.IStatus secondStatus)
IStatus
. The more severe is returned.public static org.eclipse.core.runtime.IStatus getMostSevereStatus(org.eclipse.core.runtime.IStatus[] status)