diff --git a/.classpath b/.classpath index 576b210a..c623317c 100644 --- a/.classpath +++ b/.classpath @@ -6,7 +6,7 @@ - + diff --git a/src/Acquisition/layoutFX/CheckWavHeadersPane.java b/src/Acquisition/layoutFX/CheckWavHeadersPane.java index 15e1785d..4f849e86 100644 --- a/src/Acquisition/layoutFX/CheckWavHeadersPane.java +++ b/src/Acquisition/layoutFX/CheckWavHeadersPane.java @@ -164,6 +164,7 @@ public class CheckWavHeadersPane extends PamBorderPane { private int countFiles(File folder) { + if (folder == null) return 0; int nF = 0; File[] files = folder.listFiles(new PamAudioFileFilter()); if (files == null) return 0; diff --git a/src/dataPlotsFX/TDControlFX.java b/src/dataPlotsFX/TDControlFX.java index 80b0ce55..0542ccd1 100644 --- a/src/dataPlotsFX/TDControlFX.java +++ b/src/dataPlotsFX/TDControlFX.java @@ -23,6 +23,7 @@ import PamguardMVC.PamObserverAdapter; import PamguardMVC.PamRawDataBlock; /** + * * The controller for the display if the main PAMGuard GUI is in JavaFX mode. * * @author Jamie Macaulay diff --git a/src/detectionPlotFX/DetectionGroupDisplay.java b/src/detectionPlotFX/DetectionGroupDisplay.java index 6b22c7ae..1a79cbb8 100644 --- a/src/detectionPlotFX/DetectionGroupDisplay.java +++ b/src/detectionPlotFX/DetectionGroupDisplay.java @@ -166,9 +166,6 @@ public class DetectionGroupDisplay extends PamBorderPane { arrowPane.getChildren().addAll(arrowLeft, arrowRight); BorderPane.setAlignment(arrowPane, Pos.CENTER_RIGHT); - - - //a label to show information of the data unit dataLabel = new Label(); diff --git a/src/detectionPlotFX/DetectionGroupDisplayFX.java b/src/detectionPlotFX/DetectionGroupDisplayFX.java index 2f06e756..afad5414 100644 --- a/src/detectionPlotFX/DetectionGroupDisplayFX.java +++ b/src/detectionPlotFX/DetectionGroupDisplayFX.java @@ -7,6 +7,7 @@ import PamController.PamController; import PamController.PamSettingManager; import PamController.PamSettings; import PamguardMVC.PamDataBlock; +import javafx.geometry.Side; import javafx.scene.layout.Region; import pamViewFX.fxNodes.internalNode.PamInternalPane; import userDisplayFX.UserDisplayControlFX; @@ -101,11 +102,17 @@ public class DetectionGroupDisplayFX extends DetectionGroupDisplay implements U @Override public boolean requestNodeSettingsPane() { - // TODO Auto-generated method stub - return false; + this.showSettingsPane(true); + + return true; } + private void showSettingsPane(boolean b) { + this.detectionDisplay.getHidingPane(Side.RIGHT).showHidePane(b);; + + } + @Override public void notifyModelChanged(int changeType) { @@ -175,8 +182,8 @@ public class DetectionGroupDisplayFX extends DetectionGroupDisplay implements U return false; } - System.out.println("DETECTION DISPLAY DATA SOURCE: " + settings.dataSource); - System.out.println("DETECTION DISPLAY DATA SOURCE: " + settings.tabName); + System.out.println("LOAD DETECTION DISPLAY DATA SOURCE: " + settings.dataSource); + System.out.println("LOAD DETECTION DISPLAY DATA SOURCE: " + settings.tabName); this.detectionPlotParams = settings.clone(); diff --git a/src/pamViewFX/PamGuiFX.java b/src/pamViewFX/PamGuiFX.java index 4fa1a970..80ee6983 100644 --- a/src/pamViewFX/PamGuiFX.java +++ b/src/pamViewFX/PamGuiFX.java @@ -244,7 +244,7 @@ public class PamGuiFX extends StackPane implements PamViewInterface { mainTabPane.setTabStartRegion(showButtonLeft); mainTabPane.getAddTabButton().setOnAction((value)->{ - addPamTab(new TabInfo("Display " + this.getNumTabs()+1), null ,true); + addPamTab(new TabInfo("Display " + (this.getNumTabs()+1)), null ,true); mainTabPane.layout(); }); diff --git a/src/pamViewFX/PamGuiManagerFX.java b/src/pamViewFX/PamGuiManagerFX.java index b5764759..90b0a854 100644 --- a/src/pamViewFX/PamGuiManagerFX.java +++ b/src/pamViewFX/PamGuiManagerFX.java @@ -359,7 +359,7 @@ public class PamGuiManagerFX implements PAMControllerGUI, PamSettings { //add the display to the current set of tabs. ArrayList allTabs = getAllTabs(); for (int i=0; i