public interface IMerger
Clients are encouraged to subclass AbstractMerger instead of implementing IMerger so that they can benefit from a maximum of the common procedures.
Modifier and Type | Interface and Description |
---|---|
static interface |
IMerger.Registry
This will hold all registered mergers.
|
static class |
IMerger.RegistryImpl
A default implementation of an
IMerger.Registry . |
Modifier and Type | Method and Description |
---|---|
void |
copyLeftToRight(Diff target,
Monitor monitor)
Executes the copy from left to right.
|
void |
copyRightToLeft(Diff target,
Monitor monitor)
Executes the copy from right to left.
|
int |
getRanking()
Returns the ranking of this merger.
|
IMerger.Registry |
getRegistry()
Get the registry.
|
boolean |
isMergerFor(Diff target)
Check if the merger is a good candidate to merge the given difference.
|
void |
setRanking(int parseInt)
Set the ranking of this merger.
|
void |
setRegistry(IMerger.Registry registry)
Set the registry containing this merger.
|
boolean isMergerFor(Diff target)
target
- The given target difference.int getRanking()
void setRanking(int parseInt)
parseInt
- The ranking.void copyRightToLeft(Diff target, Monitor monitor)
target
- The difference to handle.monitor
- Monitor.void copyLeftToRight(Diff target, Monitor monitor)
target
- The difference to handle.monitor
- Monitor.void setRegistry(IMerger.Registry registry)
registry
- The merger registry.IMerger.Registry getRegistry()
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.