19package org.sleuthkit.autopsy.communications;
21import java.awt.Component;
22import java.beans.PropertyChangeEvent;
23import java.beans.PropertyChangeListener;
24import javax.swing.ImageIcon;
25import javax.swing.JButton;
26import org.openide.awt.ActionID;
27import org.openide.awt.ActionReference;
28import org.openide.awt.ActionReferences;
29import org.openide.awt.ActionRegistration;
30import org.openide.util.HelpCtx;
31import org.openide.util.NbBundle;
32import org.openide.util.NbBundle.Messages;
33import org.openide.util.actions.CallableSystemAction;
34import org.openide.windows.TopComponent;
35import org.openide.windows.WindowManager;
36import org.sleuthkit.autopsy.casemodule.Case;
37import org.sleuthkit.autopsy.core.RuntimeProperties;
43@ActionID(category =
"Tools",
44 id =
"org.sleuthkit.autopsy.communicationsVisualization.OpenCVTAction")
45@ActionRegistration(displayName =
"#CTL_OpenCVTAction", lazy =
false)
46@ActionReferences(value = {
47 @ActionReference(path =
"Menu/Tools", position = 102)
49 @ActionReference(path =
"Toolbars/Case", position = 102)})
50@Messages(
"CTL_OpenCVTAction=Communications")
54 private final PropertyChangeListener
pcl;
56 new ImageIcon(getClass().getResource(
"images/emblem-web24.png")));
61 pcl = (PropertyChangeEvent evt) -> {
72 final TopComponent tc = WindowManager.getDefault().findTopComponent(
"CVTTopComponent");
74 if (tc.isOpened() ==
false) {
89 super.setEnabled(value);
94 @NbBundle.Messages(
"OpenCVTAction.displayName=Communications")
96 return Bundle.OpenCVTAction_displayName();
111 return HelpCtx.DEFAULT_HELP;
static void addPropertyChangeListener(PropertyChangeListener listener)
static boolean runningWithGUI