Package org.eclipse.emf.compare.merge
Class AdditiveConflictMerger
java.lang.Object
org.eclipse.emf.compare.merge.AbstractMerger
org.eclipse.emf.compare.merge.ConflictMerger
org.eclipse.emf.compare.merge.AdditiveConflictMerger
- All Implemented Interfaces:
- IMergeCriterionAware,- IMergeOptionAware,- IMerger,- IMerger2
This specific implementation of 
AbstractMerger will be used to merge conflicts in an additive merge
 context.- Since:
- 3.4
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.emf.compare.merge.IMergerIMerger.Registry, IMerger.Registry2, IMerger.RegistryImpl
- 
Field SummaryFields inherited from class org.eclipse.emf.compare.merge.AbstractMergermergeOptions, SUB_DIFF_AWARE_OPTION
- 
Constructor SummaryConstructorsConstructorDescriptionThe constructor specify the context where this merger can be used.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanapply(IMergeCriterion criterion) Default implementation of apply for mergers that extends this class.voidcopyRightToLeft(Diff target, Monitor monitor) Executes the copy from right to left.getDirectMergeDependencies(Diff target, boolean mergeRightToLeft) Retrieves the set of directly required diffs needed in order to merge the current one.getDirectResultingMerges(Diff target, boolean mergeRightToLeft) Returns all differences that will be merged because of our merging the giventargetdifference.Methods inherited from class org.eclipse.emf.compare.merge.ConflictMergercopyLeftToRight, getMergerDelegate, isMergerForMethods inherited from class org.eclipse.emf.compare.merge.AbstractMergeraccept, addAt, copyDiff, createCopy, getDirectResultingRejections, getImpliedMerges, getLogicallyResultingMerges, getMergeOptions, getMergerDelegate, getRanking, getRegistry, isAccepting, isAdd, isInTerminalState, isSet, isUnset, mergeDiff, reject, setMergeOptions, setRanking, setRegistry
- 
Constructor Details- 
AdditiveConflictMergerpublic AdditiveConflictMerger()The constructor specify the context where this merger can be used.
 
- 
- 
Method Details- 
applyDescription copied from class:AbstractMergerDefault implementation of apply for mergers that extends this class. Will acceptnullor AdditiveMergeCriterion.INSTANCE.- Specified by:
- applyin interface- IMergeCriterionAware
- Overrides:
- applyin class- ConflictMerger
- Parameters:
- criterion- The merge criterion
- Returns:
- trueif the given criterion is null or is AdditiveMergeCriterion.INSTANCE.
 
- 
copyRightToLeftDescription copied from class:ConflictMergerExecutes the copy from right to left.- Specified by:
- copyRightToLeftin interface- IMerger
- Overrides:
- copyRightToLeftin class- ConflictMerger
- Parameters:
- target- The difference to handle.
- monitor- Monitor.
- See Also:
 
- 
getDirectMergeDependenciesDescription copied from class:AbstractMergerRetrieves the set of directly required diffs needed in order to merge the current one. This may includes the diff'srequirementsor any other diff that we need to merge before the given one.- Specified by:
- getDirectMergeDependenciesin interface- IMerger2
- Overrides:
- getDirectMergeDependenciesin class- ConflictMerger
- Parameters:
- target- The diff which direct requirements we need.
- mergeRightToLeft- The direction in which we're considering a merge.
- Returns:
- The set of directly required diffs in order to merge the current one.
 
- 
getDirectResultingMergesDescription copied from class:AbstractMergerReturns all differences that will be merged because of our merging the giventargetdifference. This may include the diff'simplications, the diff'sequivalences, the diff'srefinementsor any other diff that we need to merge together with the given diff.- Specified by:
- getDirectResultingMergesin interface- IMerger2
- Overrides:
- getDirectResultingMergesin class- ConflictMerger
- Parameters:
- target- The difference we're considering merging.
- mergeRightToLeft- The direction in which we're considering a merge.
- Returns:
- The Set of all differences that will be merged because we've merged target.
 
 
-