X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FPreferences.java;h=8b33debd11d818a982d45f72215efbeef79c8224;hb=20ee237bee8261a2e14299a90d97a88701d47733;hp=c7e13324920417d097c6723c5881dbb1d6a964f9;hpb=d82ec00f14199ef0ce21bd5bc70a59142b7c4b07;p=jalview.git diff --git a/src/jalview/gui/Preferences.java b/src/jalview/gui/Preferences.java index c7e1332..8b33deb 100755 --- a/src/jalview/gui/Preferences.java +++ b/src/jalview/gui/Preferences.java @@ -88,6 +88,8 @@ public class Preferences extends GPreferences public static final String SHOW_AUTOCALC_ABOVE = "SHOW_AUTOCALC_ABOVE"; + public static final String HIDE_INTRONS = "HIDE_INTRONS"; + private static final int MIN_FONT_SIZE = 1; private static final int MAX_FONT_SIZE = 30; @@ -175,11 +177,11 @@ public class Preferences extends GPreferences dasTab.add(dasSource, BorderLayout.CENTER); wsPrefs = new WsPreferences(); wsTab.add(wsPrefs, BorderLayout.CENTER); - int width = 500, height = 450; + int width = 500, height = 470; if (new jalview.util.Platform().isAMac()) { width = 570; - height = 480; + height = 500; } Desktop.addInternalFrame(frame, @@ -241,6 +243,7 @@ public class Preferences extends GPreferences idItalics.setSelected(Cache.getDefault("ID_ITALICS", true)); wrap.setSelected(Cache.getDefault("WRAP_ALIGNMENT", false)); + hideIntrons.setSelected(Cache.getDefault(HIDE_INTRONS, true)); gapSymbolCB.addItem("-"); gapSymbolCB.addItem("."); @@ -458,6 +461,8 @@ public class Preferences extends GPreferences Cache.applicationProperties.setProperty("WRAP_ALIGNMENT", Boolean.toString(wrap.isSelected())); + Cache.applicationProperties.setProperty(HIDE_INTRONS, + Boolean.toString(hideIntrons.isSelected())); Cache.applicationProperties.setProperty("STARTUP_FILE", startupFileTextfield.getText());