org.eclipse.cdt.internal.ui.dialogs
Class StatusInfo
java.lang.Object
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 . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OK_STATUS
public static final org.eclipse.core.runtime.IStatus OK_STATUS
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.
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