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;
29 import org.openide.windows.WindowManager;
54 WindowManager.getDefault().getMainWindow().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
55 new SwingWorker<Void, Void>() {
58 protected Void doInBackground()
throws Exception {
64 protected void done() {
67 }
catch (InterruptedException ex) {
68 logger.log(Level.SEVERE,
"Unexpected interrupt while navigating to OS Account.", ex);
69 }
catch (ExecutionException ex) {
70 logger.log(Level.SEVERE,
"Error navigating to OS Account.", ex);
72 WindowManager.getDefault().getMainWindow().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
static final Logger logger
ViewOsAccountAction(OsAccount osAccount, String displayName)
final OsAccount osAccount
synchronized static Logger getLogger(String name)
void viewOsAccount(OsAccount osAccount)
static synchronized DirectoryTreeTopComponent findInstance()
void actionPerformed(ActionEvent e)