mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +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.util.NbBundle.Messages;
|
||||||
import org.openide.windows.RetainLocation;
|
import org.openide.windows.RetainLocation;
|
||||||
import org.openide.windows.TopComponent;
|
import org.openide.windows.TopComponent;
|
||||||
|
import org.openide.windows.WindowManager;
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
import static org.sleuthkit.autopsy.casemodule.Case.Events.CURRENT_CASE;
|
import static org.sleuthkit.autopsy.casemodule.Case.Events.CURRENT_CASE;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
@ -53,6 +54,8 @@ import org.sleuthkit.datamodel.BlackboardArtifact;
|
|||||||
@SuppressWarnings("PMD.SingularField")
|
@SuppressWarnings("PMD.SingularField")
|
||||||
public final class GeolocationTopComponent extends TopComponent {
|
public final class GeolocationTopComponent extends TopComponent {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(GeolocationTopComponent.class.getName());
|
private static final Logger logger = Logger.getLogger(GeolocationTopComponent.class.getName());
|
||||||
|
|
||||||
private static final Set<IngestManager.IngestModuleEvent> INGEST_MODULE_EVENTS_OF_INTEREST = EnumSet.of(DATA_ADDED);
|
private static final Set<IngestManager.IngestModuleEvent> INGEST_MODULE_EVENTS_OF_INTEREST = EnumSet.of(DATA_ADDED);
|
||||||
@ -128,6 +131,17 @@ public final class GeolocationTopComponent extends TopComponent {
|
|||||||
IngestManager.getInstance().removeIngestModuleEventListener(ingestListener);
|
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.
|
* 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{
|
static List<org.jxmapviewer.viewer.Waypoint> getWaypoints(SleuthkitCase skCase) throws TskCoreException{
|
||||||
List<Waypoint> points = Waypoint.getAllWaypoints(skCase);
|
List<Waypoint> points = Waypoint.getAllWaypoints(skCase);
|
||||||
|
|
||||||
List<Route> routes = Route.getGPSRoutes(skCase);
|
List<Route> routes = Route.getRoutes(skCase);
|
||||||
for(Route route: routes) {
|
for(Route route: routes) {
|
||||||
points.addAll(route.getRoute());
|
points.addAll(route.getRoute());
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,8 @@ import org.sleuthkit.autopsy.core.RuntimeProperties;
|
|||||||
@ActionReference(path = "Menu/Tools", position = 102)})
|
@ActionReference(path = "Menu/Tools", position = 102)})
|
||||||
public class OpenGeolocationAction extends CallableSystemAction {
|
public class OpenGeolocationAction extends CallableSystemAction {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Messages({
|
@Messages({
|
||||||
"OpenGeolocationAction_name=Geolocation",
|
"OpenGeolocationAction_name=Geolocation",
|
||||||
"OpenGeolocationAction_displayName=Geolocation"
|
"OpenGeolocationAction_displayName=Geolocation"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user