mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Updated basic window to use new datamodel
This commit is contained in:
parent
2883e5f281
commit
156edd28f5
@ -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.
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user