org.eclipse.cdt.internal.ui.dialogs
Class StatusTool

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.dialogs.StatusTool

public class StatusTool
extends java.lang.Object


Constructor Summary
StatusTool()
           
 
Method Summary
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 void applyToStatusLine(MessageLine messageLine, org.eclipse.core.runtime.IStatus status)
          Applies the status to the status line of a dialog page
static java.lang.String[] getErrorMessages(org.eclipse.core.runtime.IStatus status)
          Returns error-message / warning-message for a status
static org.eclipse.core.runtime.IStatus getMoreSevere(org.eclipse.core.runtime.IStatus s1, org.eclipse.core.runtime.IStatus s2)
          Compare two IStatus.
static org.eclipse.core.runtime.IStatus getMostSevere(org.eclipse.core.runtime.IStatus[] status)
          Finds the most severe status from a array of status An error is more severe than a warning, and a warning is more severe than ok.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusTool

public StatusTool()
Method Detail

applyToStatusLine

public static void applyToStatusLine(MessageLine messageLine,
                                     org.eclipse.core.runtime.IStatus status)
Applies the status to the status line of a dialog page


applyToStatusLine

public 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


getErrorMessages

public static java.lang.String[] getErrorMessages(org.eclipse.core.runtime.IStatus status)
Returns error-message / warning-message for a status


getMoreSevere

public static org.eclipse.core.runtime.IStatus getMoreSevere(org.eclipse.core.runtime.IStatus s1,
                                                             org.eclipse.core.runtime.IStatus s2)
Compare two IStatus. The more severe is returned: An error is more severe than a warning, and a warning is more severe than ok.


getMostSevere

public static org.eclipse.core.runtime.IStatus getMostSevere(org.eclipse.core.runtime.IStatus[] status)
Finds the most severe status from a array of status An error is more severe than a warning, and a warning is more severe than ok.