19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.prefs.PreferenceChangeEvent;
32 class DataSourcesKnownAndSlackFilter<T
extends Content> extends KnownAndSlackFilterBase<T> {
39 UserPreferences.addChangeListener((PreferenceChangeEvent evt) -> {
40 if (evt.getKey().equals(UserPreferences.HIDE_KNOWN_FILES_IN_DATA_SRCS_TREE)) {
41 filterKnown = UserPreferences.hideKnownFilesInDataSourcesTree();
42 }
else if (evt.getKey().equals(UserPreferences.HIDE_SLACK_FILES_IN_DATA_SRCS_TREE)) {
43 filterSlack = UserPreferences.hideSlackFilesInDataSourcesTree();
48 DataSourcesKnownAndSlackFilter() {
49 filterKnown = UserPreferences.hideKnownFilesInDataSourcesTree();
50 filterSlack = UserPreferences.hideSlackFilesInDataSourcesTree();