Autopsy  4.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
RunIngestAction.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011-2015 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  */
19 package org.sleuthkit.autopsy.ingest;
20 
21 import java.awt.event.ActionEvent;
22 import java.awt.event.ActionListener;
23 import javax.swing.JMenuItem;
24 import org.openide.awt.ActionID;
25 import org.openide.awt.ActionRegistration;
26 import org.openide.util.HelpCtx;
27 import org.openide.util.NbBundle;
28 import org.openide.util.NbBundle.Messages;
29 import org.openide.util.actions.CallableSystemAction;
30 import org.openide.util.actions.Presenter;
31 
32 @ActionID(
33  category = "Tools",
34  id = "org.sleuthkit.autopsy.ingest.RunIngestAction"
35 )
36 @ActionRegistration(
37  displayName = "#CTL_RunIngestAction",
38  lazy = false
39 )
40 @Messages("CTL_RunIngestAction=Run Ingest")
41 public final class RunIngestAction extends CallableSystemAction implements Presenter.Menu, ActionListener {
42 
43  private static final long serialVersionUID = 1L;
44 
45  static public RunIngestAction getInstance() {
46  return new RunIngestAction();
47  }
48 
52  @Override
53  public void performAction() {
54  getMenuPresenter();
55  }
56 
60  @Override
61  public String getName() {
62  return NbBundle.getMessage(RunIngestAction.class, "RunIngestModulesMenu.getName.text");
63  }
64 
68  @Override
69  public HelpCtx getHelpCtx() {
70  return HelpCtx.DEFAULT_HELP;
71  }
72 
76  @Override
77  public JMenuItem getMenuPresenter() {
78  JMenuItem sublist = new RunIngestSubMenu();
79  sublist.setVisible(true);
80  return sublist;
81  }
82 
86  @Override
87  public void actionPerformed(ActionEvent e) {
88  performAction();
89  }
90 }

Copyright © 2012-2015 Basis Technology. Generated on: Wed Apr 6 2016
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.