public static interface IMerger.Registry
An instance of the registry is usually accessed through "EMFCompareIDEPlugin.getDefault().getMergerRegistry()". However, if you need an instance of the registry in a standalone environment, you should use "IMerger.RegistryImpl.createStandaloneInstance()" so that the default registrations are taken care of.
Modifier and Type | Method and Description |
---|---|
IMerger |
add(IMerger merger)
Adds a merger to the registry.
|
void |
clear()
Clear the registry.
|
IMerger |
getHighestRankingMerger(Diff target)
Returns the merger, for the given target, owning the highest ranking.
|
Collection<IMerger> |
getMergers(Diff target)
Returns the list of the candidate mergers for the given difference.
|
IMerger |
remove(String className)
Removes a merger from the registry, from its class name.
|
IMerger getHighestRankingMerger(Diff target)
target
- The given target difference.Collection<IMerger> getMergers(Diff target)
target
- The given difference.IMerger add(IMerger merger)
merger
- The merger.IMerger remove(String className)
className
- The class name.void clear()
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.