Class DifferenceFilterManager
java.lang.Object
org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.filters.impl.DifferenceFilterManager
Manager of filters.
This manager handle addition and removal of filters
It also allow to override registered filters with preferences.
-
Constructor Summary
ConstructorsConstructorDescriptionDifferenceFilterManager(org.eclipse.jface.preference.IPreferenceStore preferenceStore) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all registeredIDifferenceFilter.Get all registered filter.Get allIDifferenceFilterthat should be used by default for next comparison.Get allIDifferenceFilterthat should be disabled for next comparison.SetofIDifferenceFilterthat are initially enabled by default.voidsetCurrentActiveFilters(Set<IDifferenceFilter> activeFilters) Set the filters that should be active for the next comparison.voidsetCurrentByDefaultFilters(Set<IDifferenceFilter> enabledFilter) Set the filters that should be used by default for next comparison.
-
Constructor Details
-
DifferenceFilterManager
public DifferenceFilterManager(org.eclipse.jface.preference.IPreferenceStore preferenceStore) Constructor.- Parameters:
preferenceStore- TheIPreferenceStoreholding the value for filter preferences.
-
-
Method Details
-
getCurrentByDefaultFilters
Get allIDifferenceFilterthat should be used by default for next comparison.- Returns:
- A
CollectionofIDifferenceFilterthat should be used by default for next comparison.
-
getCurrentInactiveFilters
Get allIDifferenceFilterthat should be disabled for next comparison.- Returns:
- A
CollectionofIDifferenceFilterthat should be disabled for next comparison.
-
getInitialByDefaultFilters
SetofIDifferenceFilterthat are initially enabled by default.During the first addiction in the registry of these
IDifferenceFilter,IDifferenceFilter.defaultSelected()was equal to true- Returns:
SetofIDifferenceFilterthat are original enabled by default.
-
setCurrentByDefaultFilters
Set the filters that should be used by default for next comparison.- Parameters:
enabledFilter-SetofIDifferenceFilterto set.
-
setCurrentActiveFilters
Set the filters that should be active for the next comparison.- Parameters:
activeFilters-SetofIDifferenceFilterto set.
-
getAllFilters
Get all registered filter.- Returns:
Setof all filter.
-
clear
public void clear()Clear all registeredIDifferenceFilter.
-