Package org.eclipse.emf.compare.conflict
Class MatchBasedConflictDetector
- java.lang.Object
-
- org.eclipse.emf.compare.conflict.MatchBasedConflictDetector
-
- All Implemented Interfaces:
IConflictDetector
public class MatchBasedConflictDetector extends Object implements IConflictDetector
This conflict detector searches for conflictingDiff
s in the sameMatch
as the currentDiff
, as well as amongReferenceChange
s that reference the sameEObject
as the currentDiff
, if it is aReferenceChange
.This implementation of
IConflictDetector
is a generic as the default one but scales better since it is not O(n²) but rather O(n) or O(n log(n)), n being the number of differences in the comparison.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description MatchBasedConflictDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detect(Comparison comparison, Monitor monitor)
This is the entry point of the conflict detection process.
-
-
-
Method Detail
-
detect
public void detect(Comparison comparison, Monitor monitor)
This is the entry point of the conflict detection process.It is expected to complete the input
comparison
by iterating over thedifferences
it contain, filling in all conflicts it can detect between those Diffs.- Specified by:
detect
in interfaceIConflictDetector
- Parameters:
comparison
- The comparison this engine is expected to complete.monitor
- The monitor to report progress or to check for cancellation- See Also:
IConflictDetector.detect(org.eclipse.emf.compare.Comparison, org.eclipse.emf.common.util.Monitor)
-
-