Class ComparisonIndex
java.lang.Object
org.eclipse.emf.compare.internal.conflict.ComparisonIndex
Index of diffs in a comparison.
-
Method Summary
Modifier and TypeMethodDescriptionThe indexedReferenceChanges whose value is in the given Match.getReferenceChangesByValueMatch(Match valueMatch) The indexedReferenceChanges whose value is in the given Match.getReferenceChangesByValueURI(URI valueURI) The indexedReferenceChanges whose value has the given URI (only unresolved proxies are indexed that way).static ComparisonIndexindex(Comparison comparison, Monitor monitor) Utility method to index a comparison.
-
Method Details
-
index
Utility method to index a comparison.- Parameters:
comparison- The comparison to index, O(nb. diff)monitor- the monitor- Returns:
- The index of the given comparison.
-
getReferenceChangesByValue
The indexedReferenceChanges whose value is in the given Match.- Parameters:
value- The targetEObject- Returns:
- A never null collection of
ReferenceChanges whose value is in the same match as the given EObject, or has the same URI.
-
getReferenceChangesByValueMatch
The indexedReferenceChanges whose value is in the given Match.- Parameters:
valueMatch- The targetMatch- Returns:
- A never null collection of
ReferenceChanges whose value in the given match.
-
getReferenceChangesByValueURI
The indexedReferenceChanges whose value has the given URI (only unresolved proxies are indexed that way).- Parameters:
valueURI- The URI to look for- Returns:
- A never null collection of
ReferenceChanges whose value is unresolved and has the given URI
-