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