Hide Tethys module

and remove text output in splitpanepositioner
This commit is contained in:
Douglas Gillespie 2024-01-18 09:36:10 +00:00
parent b373e169f2
commit 42b7296075
2 changed files with 2 additions and 1 deletions

View File

@ -471,6 +471,7 @@ final public class PamModel implements PamSettings {
mi.setToolTipText("Interface to Tethys Database"); mi.setToolTipText("Interface to Tethys Database");
mi.setModulesMenuGroup(utilitiesGroup); mi.setModulesMenuGroup(utilitiesGroup);
mi.setMaxNumber(1); mi.setMaxNumber(1);
mi.setHidden(SMRUEnable.isEnable() == false);
} }
/* /*

View File

@ -61,7 +61,7 @@ public class SplitPanePositioner implements PamSettings {
@Override @Override
public Serializable getSettingsReference() { 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(); double propPosition = (double) splitPane.getDividerLocation() / (double) splitPane.getHeight();
SplitPanePositionData posData = new SplitPanePositionData(splitPane.getDividerLocation(), propPosition, splitPane.getHeight()); SplitPanePositionData posData = new SplitPanePositionData(splitPane.getDividerLocation(), propPosition, splitPane.getHeight());
return posData; return posData;