Uses of Interface
org.eclipse.emf.compare.Match
Package
Description
-
Uses of Match in org.eclipse.emf.compare
Modifier and TypeMethodDescriptionCompareFactory.createMatch()
Returns a new object of class 'Match'.Finds and return the Match for the given EObject.Diff.getMatch()
Returns the value of the 'Match' container reference.Modifier and TypeMethodDescriptionMatch.getAllSubmatches()
Finds and returns all matches contained in this Match and its children, recursively.Comparison.getMatches()
Returns the value of the 'Matches' containment reference list.Match.getSubmatches()
Returns the value of the 'Submatches' containment reference list. -
Uses of Match in org.eclipse.emf.compare.diff
Modifier and TypeMethodDescriptionprotected static com.google.common.base.Optional<Match>
DefaultDiffEngine.getMatchIfPresent
(Comparison comparison, List<Object> list, int index) This will be used in order to read the LCS synchronously with the iteration on its target lists' values.Modifier and TypeMethodDescriptionvoid
DiffBuilder.attributeChange
(Match match, EAttribute attribute, Object value, DifferenceKind kind, DifferenceSource source) This will be called whenever the diff engine detected a difference for a given attribute value.void
IDiffProcessor.attributeChange
(Match match, EAttribute attribute, Object value, DifferenceKind kind, DifferenceSource source) This will be called whenever the diff engine detected a difference for a given attribute value.protected void
DefaultDiffEngine.checkForDifferences
(Match match, Monitor monitor) Checks the givenMatch
's sides for potential differences.protected void
DefaultDiffEngine.checkResourceAttachment
(Match match, Monitor monitor) Checks whether the givenMatch
's sides have changed resources.protected void
DefaultDiffEngine.computeContainmentDifferences
(Match match, EReference reference, boolean checkOrdering) Delegates the computation of Differences for a given containment reference according to the type of comparison (two- or three-way), and whether we need to take ordering changes into account.protected void
DefaultDiffEngine.computeContainmentDifferencesThreeWay
(Match match, EReference reference, boolean checkOrdering) Computes the difference between the sides of the givenmatch
for the given containmentreference
.protected void
DefaultDiffEngine.computeContainmentDifferencesTwoWay
(Match match, EReference reference, boolean checkOrdering) Computes the difference between the sides of the givenmatch
for the given containmentreference
.protected void
DefaultDiffEngine.computeDifferences
(Match match, EAttribute attribute, boolean checkOrdering) Computes the difference between the sides of the givenmatch
for the givenattribute
.protected void
DefaultDiffEngine.computeDifferences
(Match match, EReference reference, boolean checkOrdering) Computes the difference between the sides of the givenmatch
for the givenreference
.protected void
DefaultDiffEngine.computeMultiValuedFeatureDifferences
(Match match, EStructuralFeature feature, boolean checkOrdering) Delegates the computation of Differences for a given muti-valued feature according to the type of comparison (two- or three-way), and whether we need to take ordering changes into account.protected void
DefaultDiffEngine.computeMultiValuedFeatureDifferencesThreeWay
(Match match, EStructuralFeature feature, boolean checkOrdering) Computes the difference between the sides of the givenmatch
for the given multi-valuedfeature
.protected void
DefaultDiffEngine.computeMultiValuedFeatureDifferencesTwoWay
(Match match, EStructuralFeature feature, boolean checkOrdering) Computes the difference between the sides of the givenmatch
for the given multi-valuedfeature
.protected void
DefaultDiffEngine.computeSingleValuedAttributeDifferences
(Match match, EAttribute attribute) Computes the difference between the sides of the givenmatch
for the given single-valuedattribute
.protected void
DefaultDiffEngine.computeSingleValuedReferenceDifferencesThreeWay
(Match match, EReference reference) Computes the difference between the sides of the givenmatch
for the given single-valuedreference
.protected void
DefaultDiffEngine.computeSingleValuedReferenceDifferencesTwoWay
(Match match, EReference reference) Computes the difference between the sides of the givenmatch
for the given single-valuedreference
.protected void
DefaultDiffEngine.createContainmentDifferences
(Match match, EReference reference, boolean checkOrdering, List<Object> values, List<Object> lcsWithOrigin, DifferenceSource side) Called fromDefaultDiffEngine.computeContainmentDifferencesThreeWay(Match, EReference, boolean)
once our LCS have been computed and we know what really changed.protected void
DefaultDiffEngine.createContainmentDifferencesNoOrdering
(Match match, EReference reference, List<Object> sideValues, DifferenceSource side) This will iterate over the given list of values from a containment reference and create the differences that can be detected from it.protected void
DefaultDiffEngine.createMultiValuedFeatureDifferencesNoOrdering
(Match match, EStructuralFeature feature, List<Object> sideValues, List<Object> originValues, DifferenceSource side) This will iterate over the given list of values from a multi-valued feature and create the differences that can be detected from it.protected void
DefaultDiffEngine.featureChange
(Match match, EStructuralFeature feature, Object value, DifferenceKind kind, DifferenceSource source) Delegates to the diff processor to create the specified feature change.void
DiffBuilder.featureMapChange
(Match match, EAttribute attribute, Object value, DifferenceKind kind, DifferenceSource source) This will be called whenever the diff engine detected a difference for a given attribute value.void
IDiffProcessor.featureMapChange
(Match match, EAttribute attribute, Object value, DifferenceKind kind, DifferenceSource source) This will be called whenever the diff engine detected a difference for a given attribute value.FeatureFilter.getAttributesToCheck
(Match match) The diff engine expects this to return the set of attributes that need to be checked for differences for the givenMatch
element.FeatureFilter.getReferencesToCheck
(Match match) The diff engine expects this to return the set of references that need to be checked for differences for the givenMatch
element.protected boolean
FeatureFilter.isIgnoredReference
(Match match, EReference reference) This will be used byFeatureFilter.getReferencesToCheck(Match)
in order to determine whether a given reference should be ignored.void
DiffBuilder.referenceChange
(Match match, EReference reference, EObject value, DifferenceKind kind, DifferenceSource source) This will be called whenever the Diff engine detected a difference for a given reference value.void
IDiffProcessor.referenceChange
(Match match, EReference reference, EObject value, DifferenceKind kind, DifferenceSource source) This will be called whenever the Diff engine detected a difference for a given reference value.protected boolean
FeatureFilter.referenceIsSet
(EReference reference, Match match) Checks whether the given reference is set on at least one of the three sides of the given match.void
DiffBuilder.resourceAttachmentChange
(Match match, String uri, DifferenceKind kind, DifferenceSource source) This will be called whenever the diff engine detected the addition (or removal) of a root in a given Resource.void
IDiffProcessor.resourceAttachmentChange
(Match match, String uri, DifferenceKind kind, DifferenceSource source) This will be called whenever the diff engine detected the addition (or removal) of a root in a given Resource. -
Uses of Match in org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.tree.provider
Modifier and TypeMethodDescriptionprotected IMergeViewerItem
TreeMergeViewerItemContentProvider.createMergeViewerItem
(Comparison comparison, Diff diff, Match match, IMergeViewer.MergeViewerSide side, AdapterFactory adapterFactory) Creates theIMergeViewerItem
from the given data. -
Uses of Match in org.eclipse.emf.compare.impl
Modifier and TypeFieldDescriptionComparisonImpl.matches
The cached value of the 'Matches
' containment reference list.MatchImpl.submatches
The cached value of the 'Submatches
' containment reference list.Modifier and TypeMethodDescriptionDiffImpl.basicGetMatch()
CompareFactoryImpl.createMatch()
DiffImpl.getMatch()
Modifier and TypeMethodDescriptionMatchImpl.getAllSubmatches()
ComparisonImpl.getMatches()
MatchImpl.getSubmatches()
-
Uses of Match in org.eclipse.emf.compare.internal
Modifier and TypeMethodDescriptionSubMatchIterator.getChildren
(Object obj) SubMatchIterable.iterator()
ModifierConstructorDescriptionSubMatchIterable
(Match match) Constructs an iterable given the root of its tree.SubMatchIterator
(Match start) Constructs an iterator given the root of its tree. -
Uses of Match in org.eclipse.emf.compare.internal.conflict
Modifier and TypeMethodDescriptionAbstractConflictSearch.isContainmentDelete()
This predicate will betrue
for any Match which represents a containment deletion.Modifier and TypeMethodDescriptionComparisonIndex.getReferenceChangesByValueMatch
(Match valueMatch) The indexedReferenceChange
s whose value is in the given Match.Modifier and TypeMethodDescriptionvoid
DiffTreeIterator.setPruningFilter
(Predicate<? super Match> pruningFilter) Sets the pruning filter for this iterator.ModifierConstructorDescriptionDiffTreeIterator
(Match start) Constructs our iterator given the root of the Match tree to iterate over. -
Uses of Match in org.eclipse.emf.compare.internal.postprocessor.factories
Modifier and TypeMethodDescriptionAbstractChangeFactory.getParentMatch
(Diff input) Returns the match in which the difference will be added.IChangeFactory.getParentMatch
(Diff input) Returns the match in which the difference will be added. -
Uses of Match in org.eclipse.emf.compare.internal.spec
Modifier and TypeClassDescriptionclass
This specialization of theMatchImpl
class allows us to define the derived features and operations implementations.Modifier and TypeMethodDescriptionAttributeChangeSpec.basicGetMatch()
DiffSpec.basicGetMatch()
FeatureMapChangeSpec.basicGetMatch()
ReferenceChangeSpec.basicGetMatch()
ResourceAttachmentChangeSpec.basicGetMatch()
ResourceLocationChangeSpec.basicGetMatch()
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
-
Uses of Match in org.eclipse.emf.compare.internal.utils
Modifier and TypeMethodDescriptionstatic EObject
ComparisonUtil.getExpectedSide
(Match match, DifferenceSource source, boolean mergeRightToLeft) Determines the side of the givenMatch
which represents the model state the other side will be changed to. -
Uses of Match in org.eclipse.emf.compare.match.eobject
Modifier and TypeMethodDescriptionIdentifierEObjectMatcher.matchPerId
(Iterator<? extends EObject> leftEObjects, Iterator<? extends EObject> rightEObjects, Iterator<? extends EObject> originEObjects, List<EObject> leftEObjectsNoID, List<EObject> rightEObjectsNoID, List<EObject> originEObjectsNoID) Matches the EObject per ID. -
Uses of Match in org.eclipse.emf.compare.match.impl
Modifier and TypeMethodDescriptionNotLoadedFragmentMatch.getFirstMatchChild()
Get the first match child. -
Uses of Match in org.eclipse.emf.compare.merge
Modifier and TypeMethodDescriptionprotected URI
ResourceAttachmentChangeMerger.computeTargetURI
(Match match, boolean rightToLeft) Computes the URI of the "target" resource.protected Resource
ResourceAttachmentChangeMerger.findOrCreateTargetResource
(Match match, boolean rightToLeft) This will try and locate the "target" resource of this merge in the current comparison. -
Uses of Match in org.eclipse.emf.compare.provider.spec
Modifier and TypeMethodDescriptionOverlayImageProvider.getComposedImage
(Match match, Object imageToCompose) Returns a composed image with the image of the given match the appropriate overlay. -
Uses of Match in org.eclipse.emf.compare.rcp.ui.internal.contentmergeviewer.accessor.impl
ModifierConstructorDescriptionMatchAccessor
(AdapterFactory adapterFactory, Match match, Diff diff, IMergeViewer.MergeViewerSide side) Creates a new object wrapping the giveneObject
.MatchAccessor
(AdapterFactory adapterFactory, Match match, IMergeViewer.MergeViewerSide side) Creates a new object wrapping the giveneObject
. -
Uses of Match in org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl
ModifierConstructorDescriptionContainer
(Comparison comparison, Diff diff, Match match, IMergeViewer.MergeViewerSide side, AdapterFactory adapterFactory) Deprecated.MergeViewerItem
(Comparison comparison, Diff diff, Match match, IMergeViewer.MergeViewerSide side, AdapterFactory adapterFactory) ResourceAttachmentChangeMergeViewerItem
(Comparison comparison, Diff diff, Match match, IMergeViewer.MergeViewerSide side, AdapterFactory adapterFactory) -
Uses of Match in org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.groups.impl
Modifier and TypeMethodDescriptionprotected Match
BasicDifferenceGroupImpl.getTargetMatch
(Diff diff) Provide the Match that should directly contain the given diff. -
Uses of Match in org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.nodes
Modifier and TypeMethodDescriptionMatchNode.getMatch()
Getter for the match represented by this TreeNode. -
Uses of Match in org.eclipse.emf.compare.rcp.ui.internal.util
Modifier and TypeMethodDescriptionstatic Collection<Match>
ResourceUIUtil.getChildrenMatchWithNotLoadedParent
(Comparison comparison, Match match, IMergeViewer.MergeViewerSide side) Filters, from the root matches of the given comparison, those who will children matches of the given match if all fragments of the whole models involved in comparison had been loaded, for the given side of the comparison.static Collection<Match>
ResourceUIUtil.getNotLoadedFragmentMatches
(Collection<IMergeViewerItem> items) Get from the given list ofIMergeViewerItem
s, the NotLoadedFragmentMatchs.Modifier and TypeMethodDescriptionstatic IMergeViewerItem
ResourceUIUtil.createItemForNotLoadedFragmentMatch
(Match match, IMergeViewer.MergeViewerSide side, Comparison comparison, AdapterFactory adapterFactory) Constructs aNotLoadedFragmentMatch
from the givenMatch
and then return theIMergeViewerItem
corresponding to this NotLoadedFragmentMatch.static EObject
MergeViewerUtil.getBestSideEObject
(Match match, IMergeViewer.MergeViewerSide side) static Collection<Match>
ResourceUIUtil.getChildrenMatchWithNotLoadedParent
(Comparison comparison, Match match, IMergeViewer.MergeViewerSide side) Filters, from the root matches of the given comparison, those who will children matches of the given match if all fragments of the whole models involved in comparison had been loaded, for the given side of the comparison.static ResourceSet
ResourceUIUtil.getDataResourceSet
(Match match) Get the Resource's ResourceSet of the data associated to the given Match.static ResourceSet
ResourceUIUtil.getDataResourceSet
(Match match, IMergeViewer.MergeViewerSide side) Get the Resource's ResourceSet of the data associated to the given Match, and for the given side of the comparison.static URI
ResourceUIUtil.getDataURI
(Match match) Get the Resource's URI of the data associated to the given Matchstatic URI
ResourceUIUtil.getDataURI
(Match match, IMergeViewer.MergeViewerSide side) Get the Resource's URI of the data associated to the given Match, and for the given side of the comparison. .static EObject
MergeViewerUtil.getEObject
(Match match, IMergeViewer.MergeViewerSide side) static List<?>
MergeViewerUtil.getFeatureValues
(Match match, EStructuralFeature feature, IMergeViewer.MergeViewerSide side) static TreeNode
ResourceUIUtil.getTreeNode
(Collection<TreeNode> nodes, Match match) Search from the given list of TreeNodes (and recursively on its children), the one that is associated to the given Match.static boolean
ResourceUIUtil.isFragment
(Match rootMatch, IMergeViewer.MergeViewerSide side) Check if the given match is a root match of its comparison model and is a fragment.Modifier and TypeMethodDescriptionstatic Collection<URI>
ResourceUIUtil.getDataURIs
(Collection<Match> matches, IMergeViewer.MergeViewerSide side) Get the Resource's URIs of the data associated to the given list of Matches. -
Uses of Match in org.eclipse.emf.compare.util
-
Uses of Match in org.eclipse.emf.compare.utils
Modifier and TypeMethodDescriptionprotected Match
Returns the match of this EObject if any,null
otherwise.Modifier and TypeMethodDescriptionstatic int
MatchUtil.computeIndex
(Match match, EStructuralFeature feature, Object value, DifferenceSource side) Compute the index of an object in the list of elements of a given match+feature on a given side.MatchUtil.findAddOrDeleteContainmentDiffs
(Match match) Get the potential ReferenceChanges that represent add/delete containment differences in the parent Match of the given Match.static EObject
MatchUtil.getMatchedObject
(Match m, DifferenceSource side) Get the object matched by a Match on a given side.static boolean
MatchUtil.hasDeleteDiff
(Match match, EStructuralFeature feature, Object value) Checks whether the givenvalue
has been deleted from the givenfeature
ofmatch
.static boolean
MatchUtil.hasDiff
(Match match, EStructuralFeature feature, Object value) Checks whether the givenmatch
presents a difference of any kind on the givenfeature
'svalue
.static boolean
MatchUtil.matchingIndices
(Match match, EStructuralFeature feature, Object value1, Object value2) This will be used whenever we check for conflictual MOVEs in order to determine whether we have a pseudo conflict or a real conflict.