Class DifferenceFilterRegistryImpl
java.lang.Object
org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.filters.impl.DifferenceFilterRegistryImpl
- All Implemented Interfaces:
IDifferenceFilter.Registry
The default implementation of the
IDifferenceFilter.Registry
.- Since:
- 4.0
-
Constructor Summary
ConstructorDescriptionDifferenceFilterRegistryImpl
(DifferenceFilterManager filterManager) Constructs the registry. -
Method Summary
Modifier and TypeMethodDescriptionadd
(IDifferenceFilter filter) Add to the registry the givenIDifferenceFilter
.void
clear()
Clear the registry.getFilters
(IComparisonScope scope, Comparison comparison) Returns the list ofIDifferenceFilter
contained in the registry.Remove from the registry theIDifferenceFilter
designated by the givenString
.
-
Constructor Details
-
DifferenceFilterRegistryImpl
Constructs the registry.
-
-
Method Details
-
getFilters
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:
-
add
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:
-
remove
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:
-
clear
public void clear()Clear the registry.- Specified by:
clear
in interfaceIDifferenceFilter.Registry
- See Also:
-