Autopsy  4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
PerformancePanelAction.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2014 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.diagnostics;
20 
21 import javax.swing.JDialog;
22 import org.openide.awt.ActionID;
23 import org.openide.awt.ActionReference;
24 import org.openide.awt.ActionRegistration;
25 import org.openide.util.HelpCtx;
26 import org.openide.util.NbBundle;
27 import org.openide.util.actions.CallableSystemAction;
29 
30 @ActionID(
31  category = "Help",
32  id = "org.sleuthkit.autopsy.diagnostics.PerformancePanelAction"
33 )
34 @ActionRegistration(
35  displayName = "#CTL_PerformancePanelAction",
36  lazy=true
37 )
38 @ActionReference(path = "Menu/Help", position = 1437)
39 public final class PerformancePanelAction extends CallableSystemAction {
40 
41  @Override
42  public void performAction() {
43  JDialog dialog = new PerformancePanel();
44  dialog.setVisible(true);
45  }
46 
47  @Override
48  public boolean isEnabled() {
49  return Case.isCaseOpen();
50  }
51 
52  @Override
53  public HelpCtx getHelpCtx() {
54  return HelpCtx.DEFAULT_HELP;
55  }
56 
57  @Override
58  public boolean asynchronous() {
59  return false; // run on edt
60  }
61  @Override
62  public String getName() {
63  return NbBundle.getMessage(PerformancePanelAction.class, "CTL_PerformancePanelAction");
64  }
65 }

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jan 2 2017
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.