Autopsy  4.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 2011-2017 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(category = "Help", id = "org.sleuthkit.autopsy.diagnostics.PerformancePanelAction")
31 @ActionRegistration(displayName = "#CTL_PerformancePanelAction", lazy = true)
32 @ActionReference(path = "Menu/Help", position = 1437)
33 public final class PerformancePanelAction extends CallableSystemAction {
34 
35  private static final long serialVersionUID = 1L;
36 
37  @Override
38  public void performAction() {
39  JDialog dialog = new PerformancePanel();
40  dialog.setVisible(true);
41  }
42 
43  @Override
44  public boolean isEnabled() {
45  return Case.isCaseOpen();
46  }
47 
48  @Override
49  public HelpCtx getHelpCtx() {
50  return HelpCtx.DEFAULT_HELP;
51  }
52 
53  @Override
54  public boolean asynchronous() {
55  return false;
56  }
57 
58  @Override
59  public String getName() {
60  return NbBundle.getMessage(PerformancePanelAction.class, "CTL_PerformancePanelAction");
61  }
62 }

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