git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1705 (new preference option to) hide introns when fetching genomic
[jalview.git]
/
src
/
jalview
/
gui
/
Preferences.java
diff --git
a/src/jalview/gui/Preferences.java
b/src/jalview/gui/Preferences.java
index
c7e1332
..
8b33deb
100755
(executable)
--- 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 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;
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);
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;
if (new jalview.util.Platform().isAMac())
{
width = 570;
- height = 480;
+ height = 500;
}
Desktop.addInternalFrame(frame,
}
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));
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(".");
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("WRAP_ALIGNMENT",
Boolean.toString(wrap.isSelected()));
+ Cache.applicationProperties.setProperty(HIDE_INTRONS,
+ Boolean.toString(hideIntrons.isSelected()));
Cache.applicationProperties.setProperty("STARTUP_FILE",
startupFileTextfield.getText());
Cache.applicationProperties.setProperty("STARTUP_FILE",
startupFileTextfield.getText());