Uses of Interface
org.eclipse.emf.compare.Match
-
-
Uses of Match in org.eclipse.emf.compare
Methods in org.eclipse.emf.compare that return Match Modifier and Type Method Description Match
CompareFactory. createMatch()
Returns a new object of class 'Match'.Match
Comparison. getMatch(EObject element)
Finds and return the Match for the given EObject.Match
Diff. getMatch()
Returns the value of the 'Match' container reference.Methods in org.eclipse.emf.compare that return types with arguments of type Match Modifier and Type Method Description Iterable<Match>
Match. getAllSubmatches()
Finds and returns all matches contained in this Match and its children, recursively.EList<Match>
Comparison. getMatches()
Returns the value of the 'Matches' containment reference list.EList<Match>
Match. getSubmatches()
Returns the value of the 'Submatches' containment reference list.Methods in org.eclipse.emf.compare with parameters of type Match Modifier and Type Method Description void
Diff. setMatch(Match value)
Sets the value of the 'Match
' reference. -
Uses of Match in org.eclipse.emf.compare.diff
Methods in org.eclipse.emf.compare.diff that return types with arguments of type Match Modifier and Type Method Description protected 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.Methods in org.eclipse.emf.compare.diff with parameters of type Match Modifier and Type Method Description void
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.Iterator<EAttribute>
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.Iterator<EReference>
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
Methods in org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.tree.provider with parameters of type Match Modifier and Type Method Description protected 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
Classes in org.eclipse.emf.compare.impl that implement Match Modifier and Type Class Description class
MatchImpl
An implementation of the model object 'Match'.Fields in org.eclipse.emf.compare.impl with type parameters of type Match Modifier and Type Field Description protected EList<Match>
ComparisonImpl. matches
The cached value of the 'Matches
' containment reference list.protected EList<Match>
MatchImpl. submatches
The cached value of the 'Submatches
' containment reference list.Methods in org.eclipse.emf.compare.impl that return Match Modifier and Type Method Description Match
DiffImpl. basicGetMatch()
Match
CompareFactoryImpl. createMatch()
Match
ComparisonImpl. getMatch(EObject element)
Match
DiffImpl. getMatch()
Methods in org.eclipse.emf.compare.impl that return types with arguments of type Match Modifier and Type Method Description Iterable<Match>
MatchImpl. getAllSubmatches()
EList<Match>
ComparisonImpl. getMatches()
EList<Match>
MatchImpl. getSubmatches()
Methods in org.eclipse.emf.compare.impl with parameters of type Match Modifier and Type Method Description void
DiffImpl. setMatch(Match newMatch)
-
Uses of Match in org.eclipse.emf.compare.internal
Methods in org.eclipse.emf.compare.internal that return types with arguments of type Match Modifier and Type Method Description protected Iterator<? extends Match>
SubMatchIterator. getChildren(Object obj)
Iterator<Match>
SubMatchIterable. iterator()
Constructors in org.eclipse.emf.compare.internal with parameters of type Match Constructor Description SubMatchIterable(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
Methods in org.eclipse.emf.compare.internal.conflict that return types with arguments of type Match Modifier and Type Method Description protected Predicate<? super Match>
AbstractConflictSearch. isContainmentDelete()
This predicate will betrue
for any Match which represents a containment deletion.Methods in org.eclipse.emf.compare.internal.conflict with parameters of type Match Modifier and Type Method Description Collection<ReferenceChange>
ComparisonIndex. getReferenceChangesByValueMatch(Match valueMatch)
The indexedReferenceChange
s whose value is in the given Match.Method parameters in org.eclipse.emf.compare.internal.conflict with type arguments of type Match Modifier and Type Method Description void
DiffTreeIterator. setPruningFilter(Predicate<? super Match> pruningFilter)
Sets the pruning filter for this iterator.Constructors in org.eclipse.emf.compare.internal.conflict with parameters of type Match Constructor Description DiffTreeIterator(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
Methods in org.eclipse.emf.compare.internal.postprocessor.factories that return Match Modifier and Type Method Description Match
AbstractChangeFactory. getParentMatch(Diff input)
Returns the match in which the difference will be added.Match
IChangeFactory. getParentMatch(Diff input)
Returns the match in which the difference will be added. -
Uses of Match in org.eclipse.emf.compare.internal.spec
Classes in org.eclipse.emf.compare.internal.spec that implement Match Modifier and Type Class Description class
MatchSpec
This specialization of theMatchImpl
class allows us to define the derived features and operations implementations.Methods in org.eclipse.emf.compare.internal.spec that return Match Modifier and Type Method Description Match
AttributeChangeSpec. basicGetMatch()
Match
DiffSpec. basicGetMatch()
Match
FeatureMapChangeSpec. basicGetMatch()
Match
ReferenceChangeSpec. basicGetMatch()
Match
ResourceAttachmentChangeSpec. basicGetMatch()
Match
ResourceLocationChangeSpec. basicGetMatch()
Match
ComparisonSpec. getMatch(EObject element)
Methods in org.eclipse.emf.compare.internal.spec that return types with arguments of type Match Modifier and Type Method Description Iterable<Match>
MatchSpec. getAllSubmatches()
Methods in org.eclipse.emf.compare.internal.spec with parameters of type Match Modifier and Type Method Description void
AttributeChangeSpec. setMatch(Match newMatch)
void
DiffSpec. setMatch(Match newMatch)
void
FeatureMapChangeSpec. setMatch(Match newMatch)
void
ReferenceChangeSpec. setMatch(Match newMatch)
void
ResourceAttachmentChangeSpec. setMatch(Match newMatch)
void
ResourceLocationChangeSpec. setMatch(Match newMatch)
-
Uses of Match in org.eclipse.emf.compare.internal.utils
Methods in org.eclipse.emf.compare.internal.utils with parameters of type Match Modifier and Type Method Description static 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
Methods in org.eclipse.emf.compare.match.eobject that return types with arguments of type Match Modifier and Type Method Description protected Set<Match>
IdentifierEObjectMatcher. 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
Classes in org.eclipse.emf.compare.match.impl that implement Match Modifier and Type Class Description class
NotLoadedFragmentMatch
The not loaded fragment match.Methods in org.eclipse.emf.compare.match.impl that return Match Modifier and Type Method Description Match
NotLoadedFragmentMatch. getFirstMatchChild()
Get the first match child.Methods in org.eclipse.emf.compare.match.impl that return types with arguments of type Match Modifier and Type Method Description Collection<Match>
NotLoadedFragmentMatch. getChildren()
Get children.Constructors in org.eclipse.emf.compare.match.impl with parameters of type Match Constructor Description NotLoadedFragmentMatch(Match child)
Constructor.Constructor parameters in org.eclipse.emf.compare.match.impl with type arguments of type Match Constructor Description NotLoadedFragmentMatch(Collection<Match> children)
Constructor. -
Uses of Match in org.eclipse.emf.compare.merge
Methods in org.eclipse.emf.compare.merge with parameters of type Match Modifier and Type Method Description protected 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
Methods in org.eclipse.emf.compare.provider.spec with parameters of type Match Modifier and Type Method Description Object
OverlayImageProvider. 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
Constructors in org.eclipse.emf.compare.rcp.ui.internal.contentmergeviewer.accessor.impl with parameters of type Match Constructor Description MatchAccessor(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
Constructors in org.eclipse.emf.compare.rcp.ui.internal.mergeviewer.item.impl with parameters of type Match Constructor Description Container(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
Methods in org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.groups.impl that return Match Modifier and Type Method Description protected Match
BasicDifferenceGroupImpl. getTargetMatch(Diff diff)
Provide the Match that should directly contain the given diff.Methods in org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.groups.impl with parameters of type Match Modifier and Type Method Description protected MatchNode
BasicDifferenceGroupImpl. buildTree(Match match)
Compute a tree for the given match.protected MatchNode
BasicDifferenceGroupImpl. createMatchNode(Match match)
Create a match node. -
Uses of Match in org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.nodes
Methods in org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.nodes that return Match Modifier and Type Method Description Match
MatchNode. getMatch()
Getter for the match represented by this TreeNode.Constructors in org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.nodes with parameters of type Match Constructor Description MatchNode(Match match)
Constructor. -
Uses of Match in org.eclipse.emf.compare.rcp.ui.internal.util
Methods in org.eclipse.emf.compare.rcp.ui.internal.util that return types with arguments of type Match Modifier and Type Method Description 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 Collection<Match>
ResourceUIUtil. getNotLoadedFragmentMatches(Collection<IMergeViewerItem> items)
Get from the given list ofIMergeViewerItem
s, the NotLoadedFragmentMatchs.Methods in org.eclipse.emf.compare.rcp.ui.internal.util with parameters of type Match Modifier and Type Method Description static 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.Method parameters in org.eclipse.emf.compare.rcp.ui.internal.util with type arguments of type Match Modifier and Type Method Description static 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
Methods in org.eclipse.emf.compare.util with parameters of type Match Modifier and Type Method Description T
CompareSwitch. caseMatch(Match object)
Returns the result of interpreting the object as an instance of 'Match'. -
Uses of Match in org.eclipse.emf.compare.utils
Methods in org.eclipse.emf.compare.utils that return Match Modifier and Type Method Description protected Match
EqualityHelper. getMatch(EObject o)
Returns the match of this EObject if any,null
otherwise.Methods in org.eclipse.emf.compare.utils with parameters of type Match Modifier and Type Method Description static 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.static Iterable<Diff>
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.
-