Class DifferenceFilterRegistryImpl
- java.lang.Object
-
- org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.filters.impl.DifferenceFilterRegistryImpl
-
- All Implemented Interfaces:
IDifferenceFilter.Registry
public class DifferenceFilterRegistryImpl extends Object implements IDifferenceFilter.Registry
The default implementation of theIDifferenceFilter.Registry
.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description DifferenceFilterRegistryImpl(DifferenceFilterManager filterManager)
Constructs the registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDifferenceFilter
add(IDifferenceFilter filter)
Add to the registry the givenIDifferenceFilter
.void
clear()
Clear the registry.List<IDifferenceFilter>
getFilters(IComparisonScope scope, Comparison comparison)
Returns the list ofIDifferenceFilter
contained in the registry.IDifferenceFilter
remove(String className)
Remove from the registry theIDifferenceFilter
designated by the givenString
.
-
-
-
Constructor Detail
-
DifferenceFilterRegistryImpl
public DifferenceFilterRegistryImpl(DifferenceFilterManager filterManager)
Constructs the registry.
-
-
Method Detail
-
getFilters
public List<IDifferenceFilter> getFilters(IComparisonScope scope, Comparison comparison)
Returns the list ofIDifferenceFilter
contained in the registry.- Specified by:
getFilters
in interfaceIDifferenceFilter.Registry
- Parameters:
scope
- The scope on which the filters will be applied.comparison
- The comparison which is to be displayed in the structural view.- Returns:
- The list of
IDifferenceFilter
contained in the registry. - See Also:
IDifferenceFilter.Registry.getFilters(org.eclipse.emf.compare.scope.IComparisonScope, org.eclipse.emf.compare.Comparison)
-
add
public IDifferenceFilter add(IDifferenceFilter filter)
Add to the registry the givenIDifferenceFilter
.- Specified by:
add
in interfaceIDifferenceFilter.Registry
- Parameters:
filter
- The givenIDifferenceFilter
.- Returns:
- The previous value associated with the class name of the given
IDifferenceFilter
, or null if there was no entry in the registry for the class name. - See Also:
IDifferenceFilter.Registry.add(org.eclipse.emf.compare.rcp.ui.structuremergeviewer.filters.IDifferenceFilter)
-
remove
public IDifferenceFilter remove(String className)
Remove from the registry theIDifferenceFilter
designated by the givenString
.- Specified by:
remove
in interfaceIDifferenceFilter.Registry
- Parameters:
className
- The givenString
representing aIDifferenceFilter
.- Returns:
- The
IDifferenceFilter
designated by the givenString
. - See Also:
IDifferenceFilter.Registry.remove(java.lang.String)
-
clear
public void clear()
Clear the registry.- Specified by:
clear
in interfaceIDifferenceFilter.Registry
- See Also:
IDifferenceFilter.Registry.clear()
-
-