19 package org.sleuthkit.autopsy.modules.hashdatabase;
21 import javax.swing.JOptionPane;
22 import org.openide.nodes.Node;
23 import org.openide.util.HelpCtx;
24 import org.openide.util.NbBundle;
25 import org.openide.util.actions.CallableSystemAction;
50 if (instance == null) {
57 public void search(Node contentNode) {
58 Content tempContent = contentNode.getLookup().lookup(Content.class);
59 this.file = tempContent.accept(initializeCV);
85 public AbstractFile
visit(Directory dir) {
103 if (HashDbSearcher.countFilesMd5Hashed() > 0) {
106 JOptionPane.showMessageDialog(null,
107 NbBundle.getMessage(
this.getClass(),
108 "HashDbSearchAction.dlgMsg.noFilesHaveMD5Calculated"),
109 NbBundle.getMessage(
this.getClass(),
"HashDbSearchAction.dlgMsg.title"),
110 JOptionPane.ERROR_MESSAGE);
115 HashDbSearchThread hashThread =
new HashDbSearchThread(file);
116 hashThread.execute();
121 return NbBundle.getMessage(this.getClass(),
"HashDbSearchAction.getName.text");
126 return HelpCtx.DEFAULT_HELP;
AbstractFile visit(org.sleuthkit.datamodel.LocalFile lf)
void search(Node contentNode)
AbstractFile defaultVisit(Content cntnt)
static final InitializeContentVisitor initializeCV
static HashDbSearchAction instance
static HashDbSearchAction getDefault()
AbstractFile visit(org.sleuthkit.datamodel.DerivedFile df)
static boolean isDotDirectory(AbstractFile dir)
AbstractFile visit(Directory dir)
AbstractFile visit(org.sleuthkit.datamodel.File f)