public class DelegatingMerger extends Object
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.Constructor and Description |
---|
DelegatingMerger(IMerger merger,
IMergeCriterion criterion)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
IMergeCriterion |
getCriterion() |
IMerger |
getMerger() |
public DelegatingMerger(IMerger merger, IMergeCriterion criterion)
merger
- The merger, cannot be null
criterion
- The criterion, can be null
public void copyRightToLeft(Diff target, Monitor monitor)
target
- the diffmonitor
- the monitorpublic void copyLeftToRight(Diff target, Monitor monitor)
target
- the diffmonitor
- the monitorpublic IMerger getMerger()
public IMergeCriterion getCriterion()
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.