Class TeamStatus
java.lang.Object
org.eclipse.core.runtime.Status
org.eclipse.team.core.TeamStatus
- All Implemented Interfaces:
IStatus, ITeamStatus
Status that is returned from some Team operations or is the payload of
some TeamExceptions.
- Since:
- 3.0
-
Field Summary
Fields inherited from class Status
CANCEL_STATUS, OK_STATUSFields inherited from interface ITeamStatus
READ_ONLY_LOCAL, RESOURCE_SYNC_INFO_ERROR, SYNC_INFO_SET_CANCELLATION, SYNC_INFO_SET_ERROR -
Constructor Summary
ConstructorsConstructorDescriptionTeamStatus(int severity, String pluginId, int code, String message, Throwable exception, IResource resource) Create a new status object. -
Method Summary
Modifier and TypeMethodDescriptionReturn the resource associated with this status.Methods inherited from class Status
error, error, getChildren, getCode, getException, getMessage, getPlugin, getSeverity, info, isMultiStatus, isOK, matches, setCode, setException, setMessage, setPlugin, setSeverity, toString, warning, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IStatus
getChildren, getCode, getException, getMessage, getPlugin, getSeverity, isMultiStatus, isOK, matches
-
Constructor Details
-
TeamStatus
public TeamStatus(int severity, String pluginId, int code, String message, Throwable exception, IResource resource) Create a new status object.- Parameters:
severity- the severity; one ofOK,ERROR,INFO, orWARNINGpluginId- the unique identifier of the relevant plug-incode- the plug-in-specific status code, orOKmessage- a human-readable message, localized to the current localeexception- a low-level exception, ornullif not applicableresource- the resource associated with the exception
-
-
Method Details
-
getResource
Return the resource associated with this status.- Specified by:
getResourcein interfaceITeamStatus- Returns:
- Returns the resource.
-