19 package org.sleuthkit.autopsy.actions;
21 import java.awt.event.ActionEvent;
22 import java.awt.event.ActionListener;
23 import java.util.logging.Level;
24 import org.openide.LifecycleManager;
25 import org.openide.awt.ActionID;
26 import org.openide.awt.ActionReference;
27 import org.openide.awt.ActionRegistration;
31 @ActionRegistration(displayName =
"Exit", iconInMenu =
true)
32 @ActionReference(path =
"Menu/Case", position = 1000, separatorBefore = 999)
33 @ActionID(
id =
"org.sleuthkit.autopsy.casemodule.ExitAction", category =
"Case")
35 final public class
ExitAction implements ActionListener {
41 if (currentCase != null) {
44 }
catch (Exception ex) {
47 LifecycleManager.getDefault().exit();
void actionPerformed(ActionEvent e)
static Case getCurrentCase()
synchronized static Logger getLogger(String name)