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

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.dialogs.StatusInfo
All Implemented Interfaces:
org.eclipse.core.runtime.IStatus

public class StatusInfo
extends java.lang.Object
implements org.eclipse.core.runtime.IStatus

A settable IStatus Can be an error, warning, info or ok. For error, info and warning states, a message describes the problem


Field Summary
static org.eclipse.core.runtime.IStatus OK_STATUS
           
 
Fields inherited from interface org.eclipse.core.runtime.IStatus
CANCEL, ERROR, INFO, OK, WARNING
 
Constructor Summary
StatusInfo()
          Creates a status set to OK (no message)
StatusInfo(int severity, java.lang.String message)
          Creates a status .
 
Method Summary
 org.eclipse.core.runtime.IStatus[] getChildren()
           
 int getCode()
           
 java.lang.Throwable getException()
           
 java.lang.String getMessage()
           
 java.lang.String getPlugin()
           
 int getSeverity()
           
 boolean isError()
           
 boolean isInfo()
           
 boolean isMultiStatus()
           
 boolean isOK()
           
 boolean isWarning()
           
 boolean matches(int severityMask)
           
 void setError(java.lang.String errorMessage)
           
 void setInfo(java.lang.String infoMessage)
           
 void setOK()
           
 void setWarning(java.lang.String warningMessage)
           
 java.lang.String toString()
          Returns a string representation of the status, suitable for debugging purposes only.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OK_STATUS

public static final org.eclipse.core.runtime.IStatus OK_STATUS
Constructor Detail

StatusInfo

public StatusInfo()
Creates a status set to OK (no message)


StatusInfo

public StatusInfo(int severity,
                  java.lang.String message)
Creates a status .

Parameters:
severity - The status severity: ERROR, WARNING, INFO and OK.
message - The message of the status. Applies only for ERROR, WARNING and INFO.
Method Detail

getChildren

public org.eclipse.core.runtime.IStatus[] getChildren()
Specified by:
getChildren in interface org.eclipse.core.runtime.IStatus
See Also:
IStatus.getChildren()

getCode

public int getCode()
Specified by:
getCode in interface org.eclipse.core.runtime.IStatus
See Also:
IStatus.getCode()

getException

public java.lang.Throwable getException()
Specified by:
getException in interface org.eclipse.core.runtime.IStatus
See Also:
IStatus.getException()

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface org.eclipse.core.runtime.IStatus
See Also:
IStatus.getMessage()

getPlugin

public java.lang.String getPlugin()
Specified by:
getPlugin in interface org.eclipse.core.runtime.IStatus
See Also:
IStatus.getPlugin()

getSeverity

public int getSeverity()
Specified by:
getSeverity in interface org.eclipse.core.runtime.IStatus
See Also:
IStatus.getSeverity()

isError

public boolean isError()

isInfo

public boolean isInfo()

isMultiStatus

public boolean isMultiStatus()
Specified by:
isMultiStatus in interface org.eclipse.core.runtime.IStatus
See Also:
IStatus.isMultiStatus()

isOK

public boolean isOK()
Specified by:
isOK in interface org.eclipse.core.runtime.IStatus

isWarning

public boolean isWarning()

matches

public boolean matches(int severityMask)
Specified by:
matches in interface org.eclipse.core.runtime.IStatus
See Also:
IStatus.matches(int)

setError

public void setError(java.lang.String errorMessage)

setInfo

public void setInfo(java.lang.String infoMessage)

setOK

public void setOK()

setWarning

public void setWarning(java.lang.String warningMessage)

toString

public java.lang.String toString()
Returns a string representation of the status, suitable for debugging purposes only.

Overrides:
toString in class java.lang.Object