Class ModelStatus
- java.lang.Object
-
- org.eclipse.core.runtime.Status
-
- org.eclipse.core.resources.mapping.ModelStatus
-
- All Implemented Interfaces:
IStatus
public class ModelStatus extends Status
A status returned by a model from the resource operation validator. The severity indicates the severity of the possible side effects of the operation. Any severity other thanOK
should be shown to the user. The message should be a human readable message that will allow the user to make a decision as to whether to continue with the operation. The model provider id should indicate which model is flagging the the possible side effects.Clients may instantiate or subclass this class.
- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor Description ModelStatus(int severity, String pluginId, String modelProviderId, String message)
Create a model status.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getModelProviderId()
Return the id of the model provider from which this status originated.-
Methods inherited from class org.eclipse.core.runtime.Status
error, error, getChildren, getCode, getException, getMessage, getPlugin, getSeverity, info, isMultiStatus, isOK, matches, setCode, setException, setMessage, setPlugin, setSeverity, toString, warning, warning
-
-
-
-
Method Detail
-
getModelProviderId
public String getModelProviderId()
Return the id of the model provider from which this status originated.- Returns:
- the id of the model provider from which this status originated
-
-