From 1be8a5ee8333ce13b2b2173c5bdcf341767a19e5 Mon Sep 17 00:00:00 2001 From: Douglas Gillespie <50671166+douggillespie@users.noreply.github.com> Date: Mon, 12 Dec 2022 17:00:19 +0000 Subject: [PATCH] Fixed Landmarks Debug so they don't disappear whenever viewer data are reloaded. --- src/landMarks/LandmarkControl.java | 1 + src/landMarks/LandmarkDataBlock.java | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/src/landMarks/LandmarkControl.java b/src/landMarks/LandmarkControl.java index 97dbf483..1c0ea4a8 100644 --- a/src/landMarks/LandmarkControl.java +++ b/src/landMarks/LandmarkControl.java @@ -61,6 +61,7 @@ public class LandmarkControl extends PamControlledUnit implements PamSettings { public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) { landmarkDatas = ((LandmarkDatas) pamControlledUnitSettings.getSettings()).clone(); + landmarkDataBlock.createDataUnits(landmarkDatas); return true; } diff --git a/src/landMarks/LandmarkDataBlock.java b/src/landMarks/LandmarkDataBlock.java index d62cc942..ce131036 100644 --- a/src/landMarks/LandmarkDataBlock.java +++ b/src/landMarks/LandmarkDataBlock.java @@ -4,7 +4,9 @@ import PamUtils.PamCalendar; import PamView.symbol.StandardSymbolManager; import PamguardMVC.PamDataBlock; import PamguardMVC.PamProcess; +import PamguardMVC.dataOffline.OfflineDataLoadInfo; import autecPhones.AutecGraphics; +import pamScrollSystem.ViewLoadObserver; public class LandmarkDataBlock extends PamDataBlock { @@ -31,4 +33,14 @@ public class LandmarkDataBlock extends PamDataBlock { } } + @Override + public boolean loadViewerData(long dataStart, long dataEnd, ViewLoadObserver loadObserver) { + return true; + } + + @Override + public boolean loadViewerData(OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver) { + return true; + } + }