| java.lang.Object org.eclipse.pde.internal.ui.parts.StatusInfo
StatusInfo | public class StatusInfo implements IStatus(Code) | | A settable IStatus.
Can be an error, warning, info or ok. For error, info and warning states,
a message describes the problem.
|
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) | | See Also: IStatus.getMessage |
getSeverity | public int getSeverity()(Code) | | |
isError | public boolean isError()(Code) | | Returns if the status' severity is ERROR.
|
isInfo | public boolean isInfo()(Code) | | Returns 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.
|
isWarning | public boolean isWarning()(Code) | | Returns 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: The - error message (can be empty, but not null) |
setInfo | public void setInfo(String infoMessage)(Code) | | Sets the status to INFO.
Parameters: 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: The - warning message (can be empty, but not null) |
|
|