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;
26 import org.openide.windows.WindowManager;
55 if (instance == null) {
62 public void search(Node contentNode) {
63 Content tempContent = contentNode.getLookup().lookup(Content.class);
64 this.file = tempContent.accept(initializeCV);
90 public AbstractFile
visit(Directory dir) {
100 public AbstractFile
visit(LayoutFile lf) {
106 public AbstractFile
visit(SlackFile f) {
111 public AbstractFile
visit(VirtualDirectory dir) {
122 @NbBundle.Messages ({
123 "HashDbSearchAction.noOpenCase.errMsg=No open case available."
128 if (file != null && HashDbSearcher.countFilesMd5Hashed() > 0) {
131 JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(),
132 NbBundle.getMessage(this.getClass(),
133 "HashDbSearchAction.dlgMsg.noFilesHaveMD5Calculated"),
134 NbBundle.getMessage(this.getClass(),
"HashDbSearchAction.dlgMsg.title"),
135 JOptionPane.ERROR_MESSAGE);
138 JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(),
139 Bundle.HashDbSearchAction_noOpenCase_errMsg(),
140 NbBundle.getMessage(this.getClass(),
"HashDbSearchAction.dlgMsg.title"),
141 JOptionPane.ERROR_MESSAGE);
146 HashDbSearchThread hashThread =
new HashDbSearchThread(file);
147 hashThread.execute();
152 return NbBundle.getMessage(this.getClass(),
"HashDbSearchAction.getName.text");
157 return HelpCtx.DEFAULT_HELP;
AbstractFile visit(LayoutFile lf)
AbstractFile visit(org.sleuthkit.datamodel.LocalFile lf)
void search(Node contentNode)
AbstractFile defaultVisit(Content cntnt)
static final InitializeContentVisitor initializeCV
static HashDbSearchAction instance
AbstractFile visit(SlackFile f)
AbstractFile visit(VirtualDirectory dir)
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)