19 package org.sleuthkit.autopsy.actions;
21 import java.awt.Cursor;
22 import java.awt.event.ActionEvent;
23 import java.util.concurrent.ExecutionException;
24 import java.util.logging.Level;
25 import javax.swing.AbstractAction;
26 import javax.swing.SwingWorker;
27 import org.openide.windows.WindowManager;
53 WindowManager.getDefault().getMainWindow().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
54 new SwingWorker<Void, Void>() {
57 protected Void doInBackground()
throws Exception {
63 protected void done() {
66 }
catch (InterruptedException ex) {
67 logger.log(Level.SEVERE,
"Unexpected interrupt while navigating to artifact.", ex);
68 }
catch (ExecutionException ex) {
69 logger.log(Level.SEVERE,
"Error navigating to artifact.", ex);
71 WindowManager.getDefault().getMainWindow().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
void actionPerformed(ActionEvent e)
void viewArtifact(final BlackboardArtifact art)
static final Logger logger
ViewArtifactAction(BlackboardArtifact artifact, String displayName)
final BlackboardArtifact artifact
synchronized static Logger getLogger(String name)
static synchronized DirectoryTreeTopComponent findInstance()