public class StatusUtil
extends java.lang.Object
Constructor and Description |
---|
StatusUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
applyToStatusLine(org.eclipse.jface.dialogs.DialogPage page,
org.eclipse.core.runtime.IStatus status)
Applies the status to the status line of a dialog page.
|
static org.eclipse.core.runtime.IStatus |
getMoreSevere(org.eclipse.core.runtime.IStatus s1,
org.eclipse.core.runtime.IStatus s2)
Compares two instances of
IStatus . |
static org.eclipse.core.runtime.IStatus |
getMostSevere(org.eclipse.core.runtime.IStatus[] status)
Finds the most severe status from a array of stati.
|
public static org.eclipse.core.runtime.IStatus getMoreSevere(org.eclipse.core.runtime.IStatus s1, org.eclipse.core.runtime.IStatus s2)
IStatus
. The more severe is returned:
An error is more severe than a warning, and a warning is more severe
than ok. If the two stati have the same severity, the second is returned.public static org.eclipse.core.runtime.IStatus getMostSevere(org.eclipse.core.runtime.IStatus[] status)
public static void applyToStatusLine(org.eclipse.jface.dialogs.DialogPage page, org.eclipse.core.runtime.IStatus status)