19 package org.sleuthkit.autopsy.filesearch;
21 import java.awt.event.ActionEvent;
22 import java.beans.PropertyChangeEvent;
23 import java.util.EnumSet;
24 import org.openide.util.HelpCtx;
25 import org.openide.util.NbBundle;
26 import org.openide.util.actions.CallableSystemAction;
42 setEnabled(evt.getNewValue() != null);
43 if (searchDialog != null && evt.getNewValue() != null) {
44 searchDialog.resetCaseDependentFilters();
51 if (instance == null) {
59 if (searchDialog == null) {
60 searchDialog =
new FileSearchDialog();
63 selectedDataSourceId = null;
64 searchDialog.setVisible(
true);
69 if (searchDialog == null) {
70 searchDialog =
new FileSearchDialog();
73 searchDialog.setSelectedDataSourceFilter(selectedDataSourceId);
74 searchDialog.setVisible(
true);
79 return NbBundle.getMessage(this.getClass(),
"FileSearchAction.getName.text");
84 return HelpCtx.DEFAULT_HELP;
93 selectedDataSourceId = dataSourceId;
void showDialog(Long dataSourceId)
static FileSearchDialog searchDialog
void actionPerformed(ActionEvent e)
static void addEventTypeSubscriber(Set< Events > eventTypes, PropertyChangeListener subscriber)
static FileSearchAction instance
static FileSearchAction getDefault()
static final long serialVersionUID
static Long selectedDataSourceId
static boolean isCaseOpen()