From 42b72960755f52864579e8c81d44cb912f22e56e Mon Sep 17 00:00:00 2001 From: Douglas Gillespie <50671166+douggillespie@users.noreply.github.com> Date: Thu, 18 Jan 2024 09:36:10 +0000 Subject: [PATCH] Hide Tethys module and remove text output in splitpanepositioner --- src/PamModel/PamModel.java | 1 + src/PamView/panel/SplitPanePositioner.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PamModel/PamModel.java b/src/PamModel/PamModel.java index ff425f38..0dfd96c6 100644 --- a/src/PamModel/PamModel.java +++ b/src/PamModel/PamModel.java @@ -471,6 +471,7 @@ final public class PamModel implements PamSettings { mi.setToolTipText("Interface to Tethys Database"); mi.setModulesMenuGroup(utilitiesGroup); mi.setMaxNumber(1); + mi.setHidden(SMRUEnable.isEnable() == false); } /* diff --git a/src/PamView/panel/SplitPanePositioner.java b/src/PamView/panel/SplitPanePositioner.java index 32642bde..88216149 100644 --- a/src/PamView/panel/SplitPanePositioner.java +++ b/src/PamView/panel/SplitPanePositioner.java @@ -61,7 +61,7 @@ public class SplitPanePositioner implements PamSettings { @Override public Serializable getSettingsReference() { - System.out.printf("Save split position %s as %d out of %d\n", unitName, splitPane.getDividerLocation(), splitPane.getHeight()); +// System.out.printf("Save split position %s as %d out of %d\n", unitName, splitPane.getDividerLocation(), splitPane.getHeight()); double propPosition = (double) splitPane.getDividerLocation() / (double) splitPane.getHeight(); SplitPanePositionData posData = new SplitPanePositionData(splitPane.getDividerLocation(), propPosition, splitPane.getHeight()); return posData;