19 package org.sleuthkit.autopsy.geolocation;
21 import java.beans.PropertyChangeEvent;
22 import java.beans.PropertyChangeListener;
23 import org.openide.awt.ActionID;
24 import org.openide.awt.ActionReference;
25 import org.openide.awt.ActionReferences;
26 import org.openide.awt.ActionRegistration;
27 import org.openide.util.HelpCtx;
28 import org.openide.util.NbBundle.Messages;
29 import org.openide.util.actions.CallableSystemAction;
30 import org.openide.windows.TopComponent;
31 import org.openide.windows.WindowManager;
40 @ActionID(category =
"Tools",
41 id =
"org.sleuthkit.autopsy.geolocation.OpenGeolocationAction")
42 @ActionRegistration(displayName =
"#CTL_OpenGeolocation", lazy =
false)
43 @ActionReferences(value = {
44 @ActionReference(path =
"Menu/Tools", position = 102)})
47 private static final long serialVersionUID = 1L;
50 "OpenGeolocationAction_name=Geolocation",
51 "OpenGeolocationAction_displayName=Geolocation"
60 PropertyChangeListener caseChangeListener = (PropertyChangeEvent evt) -> {
71 final TopComponent topComponent = WindowManager.getDefault().findTopComponent(
"GeolocationTopComponent");
72 if (topComponent != null) {
73 if (topComponent.isOpened() ==
false) {
76 topComponent.toFront();
77 topComponent.requestActive();
83 return Bundle.OpenGeolocationAction_displayName();
88 return HelpCtx.DEFAULT_HELP;
static boolean runningWithGUI
static void addPropertyChangeListener(PropertyChangeListener listener)