Package org.eclipse.emf.compare.merge
Class DelegatingMerger
java.lang.Object
org.eclipse.emf.compare.merge.DelegatingMerger
Wrapper of mergers that makes sure that a given
IMergeCriterion
is passed to the wrapped merger
before calling its merge method, and that the former value of criterion used by the wrapped merger is
restored afterwards.- Since:
- 3.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyLeftToRight
(Diff target, Monitor monitor) Call copyLeftToRight on the wrapped merger with the right criterion.void
copyRightToLeft
(Diff target, Monitor monitor) Call copyRightToLeft on the wrapped merger with the right criterion.
-
Constructor Details
-
DelegatingMerger
Constructor.- Parameters:
merger
- The merger, cannot benull
criterion
- The criterion, can benull
-
-
Method Details
-
copyRightToLeft
Call copyRightToLeft on the wrapped merger with the right criterion.- Parameters:
target
- the diffmonitor
- the monitor
-
copyLeftToRight
Call copyLeftToRight on the wrapped merger with the right criterion.- Parameters:
target
- the diffmonitor
- the monitor
-
getMerger
-
getCriterion
-