public class StatusTool
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
StatusTool.HierarchyFormatter |
private static class |
StatusTool.StatusStringBuilder |
Constructor and Description |
---|
StatusTool() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
collectProblems(org.eclipse.core.runtime.IStatus status)
Composes a single line message out of the messages of the status and its recursive children.
|
static java.lang.Throwable |
findException(org.eclipse.core.runtime.IStatus status) |
private static java.lang.Throwable |
findExceptionInChildren(org.eclipse.core.runtime.IStatus[] children) |
private static boolean |
hasChildren(org.eclipse.core.runtime.IStatus status) |
private static java.lang.String |
statusToString(org.eclipse.core.runtime.IStatus status,
boolean multiLine) |
static java.lang.String |
toLogMessage(org.eclipse.core.runtime.IStatus status)
Converts to given status to a log message.
|
public static java.lang.String collectProblems(org.eclipse.core.runtime.IStatus status)
IStatus.OK
don't add to the constructed message.public static java.lang.String toLogMessage(org.eclipse.core.runtime.IStatus status)
private static java.lang.String statusToString(org.eclipse.core.runtime.IStatus status, boolean multiLine)
public static java.lang.Throwable findException(org.eclipse.core.runtime.IStatus status)
private static java.lang.Throwable findExceptionInChildren(org.eclipse.core.runtime.IStatus[] children)
private static boolean hasChildren(org.eclipse.core.runtime.IStatus status)