org.eclipse.xtext.builder.preferences
Class StatusInfo
java.lang.Object
org.eclipse.xtext.builder.preferences.StatusInfo
- All Implemented Interfaces:
- org.eclipse.core.runtime.IStatus
public class StatusInfo
- extends java.lang.Object
- implements org.eclipse.core.runtime.IStatus
Initially copied from Jdt.
- Since:
- 2.1
- Author:
- Michael Clay
Field Summary |
static org.eclipse.core.runtime.IStatus |
OK_STATUS
|
Fields inherited from interface org.eclipse.core.runtime.IStatus |
CANCEL, ERROR, INFO, OK, WARNING |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OK_STATUS
public static final org.eclipse.core.runtime.IStatus OK_STATUS
StatusInfo
public StatusInfo()
StatusInfo
public StatusInfo(int severity,
java.lang.String message)
isOK
public boolean isOK()
- Specified by:
isOK
in interface org.eclipse.core.runtime.IStatus
isWarning
public boolean isWarning()
isInfo
public boolean isInfo()
isError
public boolean isError()
getMessage
public java.lang.String getMessage()
- Specified by:
getMessage
in interface org.eclipse.core.runtime.IStatus
setError
public void setError(java.lang.String errorMessage)
setWarning
public void setWarning(java.lang.String warningMessage)
setInfo
public void setInfo(java.lang.String infoMessage)
setOK
public void setOK()
matches
public boolean matches(int severityMask)
- Specified by:
matches
in interface org.eclipse.core.runtime.IStatus
isMultiStatus
public boolean isMultiStatus()
- Specified by:
isMultiStatus
in interface org.eclipse.core.runtime.IStatus
getSeverity
public int getSeverity()
- Specified by:
getSeverity
in interface org.eclipse.core.runtime.IStatus
getPlugin
public java.lang.String getPlugin()
- Specified by:
getPlugin
in interface org.eclipse.core.runtime.IStatus
getException
public java.lang.Throwable getException()
- Specified by:
getException
in interface org.eclipse.core.runtime.IStatus
getCode
public int getCode()
- Specified by:
getCode
in interface org.eclipse.core.runtime.IStatus
getChildren
public org.eclipse.core.runtime.IStatus[] getChildren()
- Specified by:
getChildren
in interface org.eclipse.core.runtime.IStatus
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object