Class MergeStatus
- java.lang.Object
-
- org.eclipse.core.runtime.Status
-
- org.eclipse.team.core.mapping.provider.MergeStatus
-
- All Implemented Interfaces:
IStatus
,IMergeStatus
public class MergeStatus extends Status implements IMergeStatus
A special status that is returned when the return code of themerge
method isCONFLICTS
. It is possible that there were problems that caused the auto-merge to fail. In that case, the implementor ofIResourceMappingMerger
can return a multi-status in which one of the children is aMergeStatus
and the others describe other problems that were encountered.- Since:
- 3.2
- See Also:
IResourceMappingMerger
-
-
Field Summary
-
Fields inherited from class org.eclipse.core.runtime.Status
CANCEL_STATUS, OK_STATUS
-
Fields inherited from interface org.eclipse.team.core.mapping.IMergeStatus
CONFLICTS, INTERNAL_ERROR
-
-
Constructor Summary
Constructors Constructor Description MergeStatus(String pluginId, String message, IFile[] files)
Create a merge status for reporting that some of the files for which a merge was attempted were not auto-mergable.MergeStatus(String pluginId, String message, ResourceMapping[] conflictingMappings)
Create a merge status for reporting that some of the resource mappings for which a merge was attempted were not auto-mergable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFile[]
getConflictingFiles()
Returns the set of file for which an auto-merge was not performed.ResourceMapping[]
getConflictingMappings()
Returns the set of resource mappings for which an auto-merge was not performed.-
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 Detail
-
MergeStatus
public MergeStatus(String pluginId, String message, ResourceMapping[] conflictingMappings)
Create a merge status for reporting that some of the resource mappings for which a merge was attempted were not auto-mergable.- Parameters:
pluginId
- the plugin idmessage
- the message for the statusconflictingMappings
- the mappings which were not auto-mergable
-
MergeStatus
public MergeStatus(String pluginId, String message, IFile[] files)
Create a merge status for reporting that some of the files for which a merge was attempted were not auto-mergable.- Parameters:
pluginId
- the plugin idmessage
- the message for the statusfiles
- the files which were not auto-mergable
-
-
Method Detail
-
getConflictingMappings
public ResourceMapping[] getConflictingMappings()
Description copied from interface:IMergeStatus
Returns the set of resource mappings for which an auto-merge was not performed. If the code of the status isCONFLICTS
the status may contain a set of mappings or files depending on what method returned the status.- Specified by:
getConflictingMappings
in interfaceIMergeStatus
- Returns:
- the set of resource mappings for which an auto-merge was not performed.
-
getConflictingFiles
public IFile[] getConflictingFiles()
Description copied from interface:IMergeStatus
Returns the set of file for which an auto-merge was not performed. If the code of the status isCONFLICTS
the status may contain a set of mappings or files depending on what method returned the status.- Specified by:
getConflictingFiles
in interfaceIMergeStatus
- Returns:
- the set of files for which an auto-merge was not performed.
-
-