19 package org.sleuthkit.autopsy.core;
21 import java.util.prefs.PreferenceChangeListener;
22 import java.util.prefs.Preferences;
23 import org.openide.util.NbPreferences;
43 preferences.addPreferenceChangeListener(listener);
47 preferences.removePreferenceChangeListener(listener);
51 return preferences.getBoolean(KEEP_PREFERRED_VIEWER,
false);
55 preferences.putBoolean(KEEP_PREFERRED_VIEWER, value);
59 return preferences.getBoolean(HIDE_KNOWN_FILES_IN_DATA_SOURCES_TREE,
false);
63 preferences.putBoolean(HIDE_KNOWN_FILES_IN_DATA_SOURCES_TREE, value);
67 return preferences.getBoolean(HIDE_KNOWN_FILES_IN_VIEWS_TREE,
true);
71 preferences.putBoolean(HIDE_KNOWN_FILES_IN_VIEWS_TREE, value);
75 return preferences.getBoolean(DISPLAY_TIMES_IN_LOCAL_TIME,
true);
79 preferences.putBoolean(DISPLAY_TIMES_IN_LOCAL_TIME, value);
83 return preferences.getInt(NUMBER_OF_FILE_INGEST_THREADS, 2);
87 preferences.putInt(NUMBER_OF_FILE_INGEST_THREADS, value);
static final String HIDE_KNOWN_FILES_IN_DATA_SOURCES_TREE
static final String HIDE_KNOWN_FILES_IN_VIEWS_TREE
static void setKeepPreferredContentViewer(boolean value)
static void setNumberOfFileIngestThreads(int value)
static void setDisplayTimesInLocalTime(boolean value)
static boolean keepPreferredContentViewer()
static boolean hideKnownFilesInViewsTree()
static void removeChangeListener(PreferenceChangeListener listener)
static final String NUMBER_OF_FILE_INGEST_THREADS
static void setHideKnownFilesInViewsTree(boolean value)
static int numberOfFileIngestThreads()
static final Preferences preferences
static final String DISPLAY_TIMES_IN_LOCAL_TIME
static final String KEEP_PREFERRED_VIEWER
static void setHideKnownFilesInDataSourcesTree(boolean value)
static boolean hideKnownFilesInDataSourcesTree()
static void addChangeListener(PreferenceChangeListener listener)
static boolean displayTimesInLocalTime()