wsPrefs = new WsPreferences();
wsTab.add(wsPrefs, BorderLayout.CENTER);
}
- int width = 500, height = 510; // BH 2019.07.12 added 60 to height
+ int width = 700, height = 510; // BH 2019.07.12 added 60 to height and 40 to
+ // width (for Visual check boxes and Links
+ // "Double Click" header)
+ // BH 2019.09.24 added 20 to width
// (structure panel was too small anyway, and I added a default dimension
// for Jmol
if (Platform.isAMacAndNotJS())
/*
* Set Backups tab defaults
*/
- loadLastSavedBackupsOptions();
+ if (!Platform.isJS())
+ {
+ loadLastSavedBackupsOptions();
+ }
+
}
/**
Cache.setPropertyNoSave(WRAP_ALIGNMENT,
Boolean.toString(wrap.isSelected()));
- Cache.setPropertyNoSave("STARTUP_FILE",
- startupFileTextfield.getText());
+ Cache.setPropertyNoSave("STARTUP_FILE", startupFileTextfield.getText());
Cache.setPropertyNoSave("SHOW_STARTUP_FILE",
Boolean.toString(startupCheckbox.isSelected()));
.forDescription(sortAnnBy.getSelectedItem().toString());
if (annSortOrder != null)
{
- Cache.setPropertyNoSave(SORT_ANNOTATIONS,
- annSortOrder.name());
+ Cache.setPropertyNoSave(SORT_ANNOTATIONS, annSortOrder.name());
}
final boolean showAutocalcFirst = sortAutocalc.getSelectedIndex() == 0;
}
else
{
- Cache.setPropertyNoSave("SEQUENCE_LINKS",
- menuLinks.toString());
+ Cache.setPropertyNoSave("SEQUENCE_LINKS", menuLinks.toString());
}
String nonMenuLinks = sequenceUrlLinks.writeUrlsAsString(false);
}
else
{
- Cache.setPropertyNoSave("STORED_LINKS",
- nonMenuLinks.toString());
+ Cache.setPropertyNoSave("STORED_LINKS", nonMenuLinks.toString());
}
Cache.setPropertyNoSave("DEFAULT_URL",
Cache.setPropertyNoSave(FIGURE_AUTOIDWIDTH,
Boolean.toString(autoIdWidth.isSelected()));
userIdWidth_actionPerformed();
- Cache.setPropertyNoSave("FIGURE_FIXEDIDWIDTH",
- userIdWidth.getText());
+ Cache.setPropertyNoSave("FIGURE_FIXEDIDWIDTH", userIdWidth.getText());
/*
* Save Editing settings
if (!Platform.isJS())
{
wsPrefs.updateAndRefreshWsMenuConfig(false);
- }
+ /*
+ * Save Backups settings
+ */
+ Cache.setPropertyNoSave(BackupFiles.CONFIRM_DELETE_OLD,
+ Boolean.toString(backupfilesConfirmDelete.isSelected()));
+ Cache.setPropertyNoSave(BackupFiles.ENABLED,
+ Boolean.toString(enableBackupFiles.isSelected()));
+ Cache.setPropertyNoSave(BackupFiles.NO_MAX,
+ Boolean.toString(backupfilesKeepAll.isSelected()));
+ Cache.setPropertyNoSave(BackupFiles.REVERSE_ORDER,
+ Boolean.toString(suffixReverse.isSelected()));
+ Cache.setPropertyNoSave(BackupFiles.SUFFIX, suffixTemplate.getText());
+ Cache.setPropertyNoSave(BackupFiles.ROLL_MAX, Integer
+ .toString(getSpinnerInt(backupfilesRollMaxSpinner, 4)));
+ Cache.setPropertyNoSave(BackupFiles.SUFFIX_DIGITS,
+ Integer.toString(getSpinnerInt(suffixDigitsSpinner, 3)));
+ Cache.setPropertyNoSave(BackupFiles.NS + "_PRESET", Integer
+ .toString(getComboIntStringKey(backupfilesPresetsCombo)));
- /*
- * Save Backups settings
- */
- Cache.setPropertyNoSave(BackupFiles.CONFIRM_DELETE_OLD,
- Boolean.toString(backupfilesConfirmDelete.isSelected()));
- Cache.setPropertyNoSave(BackupFiles.ENABLED,
- Boolean.toString(enableBackupFiles.isSelected()));
- Cache.setPropertyNoSave(BackupFiles.NO_MAX,
- Boolean.toString(backupfilesKeepAll.isSelected()));
- Cache.setPropertyNoSave(BackupFiles.REVERSE_ORDER,
- Boolean.toString(suffixReverse.isSelected()));
- Cache.setPropertyNoSave(BackupFiles.SUFFIX,
- suffixTemplate.getText());
- Cache.setPropertyNoSave(BackupFiles.ROLL_MAX,
- Integer.toString(getSpinnerInt(backupfilesRollMaxSpinner, 4)));
- Cache.setPropertyNoSave(BackupFiles.SUFFIX_DIGITS,
- Integer.toString(getSpinnerInt(suffixDigitsSpinner, 3)));
- Cache.setPropertyNoSave(BackupFiles.NS + "_PRESET",
- Integer.toString(getComboIntStringKey(backupfilesPresetsCombo)));
+ }
Cache.saveProperties();
Desktop.getInstance().doConfigureStructurePrefs();