Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
UnpackagePortableCaseAction.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2019 Basis Technology Corp.
5 * Contact: carrier <at> sleuthkit <dot> org
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19package org.sleuthkit.autopsy.casemodule;
20
21import javax.swing.Action;
22import javax.swing.JFrame;
23import org.openide.awt.ActionID;
24import org.openide.awt.ActionRegistration;
25import org.openide.util.HelpCtx;
26import org.openide.util.NbBundle.Messages;
27import org.openide.util.actions.CallableSystemAction;
28import org.openide.windows.WindowManager;
29
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"})
37public class UnpackagePortableCaseAction extends CallableSystemAction {
38
39 private static final long serialVersionUID = 1L;
40
41 UnpackagePortableCaseAction() {
42 putValue(Action.NAME, Bundle.CTL_UnpackagePortableCaseAction());
43 this.setEnabled(true);
44 }
45
46 @Override
47 public void performAction() {
48 JFrame parentFrame = (JFrame) WindowManager.getDefault().getMainWindow();
49 UnpackagePortableCaseDialog dialog = new UnpackagePortableCaseDialog(parentFrame);
50 dialog.setLocationRelativeTo(parentFrame);
51 dialog.setVisible(true);
52 }
53
54 @Override
55 public String getName() {
56 return Bundle.CTL_UnpackagePortableCaseAction();
57 }
58
59 @Override
60 public HelpCtx getHelpCtx() {
61 return HelpCtx.DEFAULT_HELP;
62 }
63
64 @Override
65 public boolean asynchronous() {
66 return false;
67 }
68}
69

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.