Class StatusTool
- java.lang.Object
-
- org.eclipse.tycho.repository.util.StatusTool
-
public class StatusTool extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classStatusTool.HierarchyFormatterprivate static classStatusTool.StatusStringBuilder
-
Constructor Summary
Constructors Constructor Description StatusTool()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcollectProblems(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.ThrowablefindException(org.eclipse.core.runtime.IStatus status)private static java.lang.ThrowablefindExceptionInChildren(org.eclipse.core.runtime.IStatus[] children)private static booleanhasChildren(org.eclipse.core.runtime.IStatus status)private static java.lang.StringstatusToString(org.eclipse.core.runtime.IStatus status, boolean multiLine)static java.lang.StringtoLogMessage(org.eclipse.core.runtime.IStatus status)Converts to given status to a log message.
-
-
-
Method Detail
-
collectProblems
public 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. Children with status severityIStatus.OKdon't add to the constructed message.
-
toLogMessage
public static java.lang.String toLogMessage(org.eclipse.core.runtime.IStatus status)
Converts to given status to a log message. If the status is a multi-status, each child will be written on a separate line, showing the hierarchy will through indentation.
-
statusToString
private static java.lang.String statusToString(org.eclipse.core.runtime.IStatus status, boolean multiLine)
-
findException
public static java.lang.Throwable findException(org.eclipse.core.runtime.IStatus status)
-
findExceptionInChildren
private static java.lang.Throwable findExceptionInChildren(org.eclipse.core.runtime.IStatus[] children)
-
hasChildren
private static boolean hasChildren(org.eclipse.core.runtime.IStatus status)
-
-