Updated basic window to use new datamodel

This commit is contained in:
Kelly Kelly 2019-10-23 15:11:23 -04:00
parent 2883e5f281
commit 156edd28f5
3 changed files with 18 additions and 2 deletions

View File

@ -33,6 +33,7 @@ import org.jxmapviewer.viewer.Waypoint;
import org.openide.util.NbBundle.Messages;
import org.openide.windows.RetainLocation;
import org.openide.windows.TopComponent;
import org.openide.windows.WindowManager;
import org.sleuthkit.autopsy.casemodule.Case;
import static org.sleuthkit.autopsy.casemodule.Case.Events.CURRENT_CASE;
import org.sleuthkit.autopsy.coreutils.Logger;
@ -52,6 +53,8 @@ import org.sleuthkit.datamodel.BlackboardArtifact;
@RetainLocation("geolocation")
@SuppressWarnings("PMD.SingularField")
public final class GeolocationTopComponent extends TopComponent {
private static final long serialVersionUID = 1L;
private static final Logger logger = Logger.getLogger(GeolocationTopComponent.class.getName());
@ -127,6 +130,17 @@ public final class GeolocationTopComponent extends TopComponent {
super.removeNotify();
IngestManager.getInstance().removeIngestModuleEventListener(ingestListener);
}
@Override
public void componentOpened() {
super.componentOpened();
WindowManager.getDefault().setTopComponentFloating(this, true);
}
@Override
public void open() {
super.open();
}
/**
* Set the state of the refresh panel at the top of the mapPanel.

View File

@ -30,7 +30,7 @@ final class MapWaypoint implements org.jxmapviewer.viewer.Waypoint{
static List<org.jxmapviewer.viewer.Waypoint> getWaypoints(SleuthkitCase skCase) throws TskCoreException{
List<Waypoint> points = Waypoint.getAllWaypoints(skCase);
List<Route> routes = Route.getGPSRoutes(skCase);
List<Route> routes = Route.getRoutes(skCase);
for(Route route: routes) {
points.addAll(route.getRoute());
}

View File

@ -42,7 +42,9 @@ import org.sleuthkit.autopsy.core.RuntimeProperties;
@ActionReferences(value = {
@ActionReference(path = "Menu/Tools", position = 102)})
public class OpenGeolocationAction extends CallableSystemAction {
private static final long serialVersionUID = 1L;
@Messages({
"OpenGeolocationAction_name=Geolocation",
"OpenGeolocationAction_displayName=Geolocation"