| java.lang.Object org.eclipse.ui.texteditor.templates.StatusInfo
StatusInfo | class StatusInfo implements IStatus(Code) | | A settable IStatus.
Can be an error, warning, info or OKk. For error, info and warning states,
a message describes the problem.
since: 3.0 |
Constructor Summary | |
public | StatusInfo() | public | StatusInfo(int severity, String message) Creates a status .
Parameters: severity - The status severity: ERROR, WARNING, INFO and OK. Parameters: message - The message of the status. |
StatusInfo | public StatusInfo()(Code) | | Creates a status set to OK (no message)
|
StatusInfo | public StatusInfo(int severity, String message)(Code) | | Creates a status .
Parameters: severity - The status severity: ERROR, WARNING, INFO and OK. Parameters: message - The message of the status. Applies only for ERROR,WARNING and INFO. |
getChildren | public IStatus[] getChildren()(Code) | | Returns always null .
See Also: IStatus.getChildren |
getCode | public int getCode()(Code) | | Returns always the error severity.
See Also: IStatus.getCode |
getException | public Throwable getException()(Code) | | Returns always null .
See Also: IStatus.getException |
getMessage | public String getMessage()(Code) | | Returns the message.
the message See Also: IStatus.getMessage |
getSeverity | public int getSeverity()(Code) | | |
isError | public boolean isError()(Code) | | Returns if the status' severity is ERROR.
true if the status' severity is ERROR |
isInfo | public boolean isInfo()(Code) | | Returns if the status' severity is INFO.
true if the status' severity is INFO |
isMultiStatus | public boolean isMultiStatus()(Code) | | Returns always false .
See Also: IStatus.isMultiStatus |
isOK | public boolean isOK()(Code) | | Returns if the status' severity is OK.
true if the status' severity is OK |
isWarning | public boolean isWarning()(Code) | | Returns if the status' severity is WARNING.
true if the status' severity is WARNING |
matches | public boolean matches(int severityMask)(Code) | | |
setError | public void setError(String errorMessage)(Code) | | Sets the status to ERROR.
Parameters: errorMessage - the error message (can be empty, but not null) |
setInfo | public void setInfo(String infoMessage)(Code) | | Sets the status to INFO.
Parameters: infoMessage - the info message (can be empty, but not null) |
setOK | public void setOK()(Code) | | Sets the status to OK.
|
setWarning | public void setWarning(String warningMessage)(Code) | | Sets the status to WARNING.
Parameters: warningMessage - the warning message (can be empty, but not null) |
|
|