org.eclipse.xtext.builder.preferences
Class StatusInfo

java.lang.Object
  extended by 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
 
Constructor Summary
StatusInfo()
           
StatusInfo(int severity, java.lang.String message)
           
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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()

StatusInfo

public StatusInfo(int severity,
                  java.lang.String message)
Method Detail

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