Class StatusTool


  • public class StatusTool
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StatusTool()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StatusTool

        public StatusTool()
    • 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 severity IStatus.OK don'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)