19 package org.sleuthkit.autopsy.casemodule;
21 import javax.swing.Action;
22 import javax.swing.JFrame;
23 import org.openide.awt.ActionID;
24 import org.openide.awt.ActionRegistration;
25 import org.openide.util.HelpCtx;
26 import org.openide.util.NbBundle.Messages;
27 import org.openide.util.actions.CallableSystemAction;
28 import org.openide.windows.WindowManager;
30 @ActionID(category =
"Case",
id =
"org.sleuthkit.autopsy.casemodule.UnpackagePortableCaseAction")
31 @ActionRegistration(displayName =
"#CTL_UnpackagePortableCaseAction", lazy =
false)
32 @Messages({
"CTL_UnpackagePortableCaseAction=Unpack and Open Portable Case"})
39 private static final long serialVersionUID = 1L;
42 putValue(Action.NAME, Bundle.CTL_UnpackagePortableCaseAction());
43 this.setEnabled(
true);
48 JFrame parentFrame = (JFrame) WindowManager.getDefault().getMainWindow();
49 UnpackagePortableCaseDialog dialog =
new UnpackagePortableCaseDialog(parentFrame);
50 dialog.setLocationRelativeTo(parentFrame);
51 dialog.setVisible(
true);
56 return Bundle.CTL_UnpackagePortableCaseAction();
61 return HelpCtx.DEFAULT_HELP;