org.eclipse.core.resources.mapping
Class ModelStatus
java.lang.Object
org.eclipse.core.runtime.Status
org.eclipse.core.resources.mapping.ModelStatus
- All Implemented Interfaces:
- org.eclipse.core.runtime.IStatus
public class ModelStatus
- extends org.eclipse.core.runtime.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 than OK
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
Fields inherited from class org.eclipse.core.runtime.Status |
CANCEL_STATUS, OK_STATUS |
Fields inherited from interface org.eclipse.core.runtime.IStatus |
CANCEL, ERROR, INFO, OK, WARNING |
Constructor Summary |
ModelStatus(int severity,
java.lang.String pluginId,
java.lang.String modelProviderId,
java.lang.String message)
Create a model status. |
Method Summary |
java.lang.String |
getModelProviderId()
Return the id of the model provider from which this status originated. |
Methods inherited from class org.eclipse.core.runtime.Status |
getChildren, getCode, getException, getMessage, getPlugin, getSeverity, isMultiStatus, isOK, matches, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ModelStatus
public ModelStatus(int severity,
java.lang.String pluginId,
java.lang.String modelProviderId,
java.lang.String message)
- Create a model status.
- Parameters:
severity
- the severitypluginId
- the plugin idmodelProviderId
- the model provider idmessage
- the message
getModelProviderId
public java.lang.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