Go to the documentation of this file.
19package org.sleuthkit.autopsy.centralrepository.persona;
21import javax.swing.JMenuItem;
22import org.openide.awt.ActionID;
23import org.openide.awt.ActionReference;
24import org.openide.awt.ActionReferences;
25import org.openide.awt.ActionRegistration;
26import org.openide.util.HelpCtx;
27import org.openide.util.NbBundle;
28import org.openide.util.actions.CallableSystemAction;
29import org.openide.windows.TopComponent;
30import org.openide.windows.WindowManager;
31import org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository;
32import org.sleuthkit.autopsy.coreutils.ThreadConfined;
38@ActionID(category =
"Tools",
id =
"org.sleuthkit.autopsy.centralrepository.persona.OpenPersonasAction")
39@ActionRegistration(displayName =
"#CTL_OpenPersonas", lazy =
false)
40@ActionReferences(value = {
41 @ActionReference(path =
"Menu/Tools", position = 1825, separatorBefore = 1824)
57 final TopComponent topComponent = WindowManager.getDefault().findTopComponent(
"PersonasTopComponent");
58 if (topComponent !=
null) {
59 if (topComponent.isOpened() ==
false) {
62 topComponent.toFront();
63 topComponent.requestActive();
68 @NbBundle.Messages(
"OpenPersonasAction.displayName=Personas")
70 return Bundle.OpenPersonasAction_displayName();
75 return HelpCtx.DEFAULT_HELP;
85 super.setEnabled(enable);
static final long serialVersionUID
void setEnabled(boolean enable)
JMenuItem getMenuPresenter()
static boolean isEnabled()
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.