Package org.eclipse.team.core
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 org.eclipse.core.runtime.Status
CANCEL_STATUS, OK_STATUS
Fields inherited from interface org.eclipse.team.core.ITeamStatus
READ_ONLY_LOCAL, RESOURCE_SYNC_INFO_ERROR, SYNC_INFO_SET_CANCELLATION, SYNC_INFO_SET_ERROR
-
Constructor Summary
ConstructorDescriptionTeamStatus
(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 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.core.runtime.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
, orWARNING
pluginId
- the unique identifier of the relevant plug-incode
- the plug-in-specific status code, orOK
message
- a human-readable message, localized to the current localeexception
- a low-level exception, ornull
if not applicableresource
- the resource associated with the exception
-
-
Method Details
-
getResource
Return the resource associated with this status.- Specified by:
getResource
in interfaceITeamStatus
- Returns:
- Returns the resource.
-