X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FPreferences.java;h=840598bfd9402db2a9ccb7301d4e3dcc88fd2474;hb=99bd0585b045d25fa719ee007e3310d27e53ac88;hp=92f1f5b0d8fb28349f55951d12c23ccd01321f5b;hpb=6d02241d48fdb8111b3987b95e1289f9d75d0871;p=jalview.git diff --git a/src/jalview/gui/Preferences.java b/src/jalview/gui/Preferences.java index 92f1f5b..840598b 100755 --- a/src/jalview/gui/Preferences.java +++ b/src/jalview/gui/Preferences.java @@ -1,6 +1,6 @@ /* * Jalview - A Sequence Alignment Editor and Viewer - * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -47,7 +47,7 @@ public class Preferences extends GPreferences static { String string = Cache.getDefault("SEQUENCE_LINKS", - "SRS|http://srs.ebi.ac.uk/srs7bin/cgi-bin/wgetz?-e+[uniprot-all:$SEQUENCE_ID$]+-vn+2"); + "SRS|http://srs.ebi.ac.uk/srsbin/cgi-bin/wgetz?-newId+(([uniprot-all:$SEQUENCE_ID$]))+-view+SwissEntry"); sequenceURLLinks = new Vector(); try @@ -81,10 +81,18 @@ public class Preferences extends GPreferences dasSource = new DasSourceBrowser(); dasPanel.add(dasSource, BorderLayout.CENTER); - Desktop.addInternalFrame(frame, "Preferences", 490, 405); - frame.setMinimumSize(new Dimension(490,395)); + int width = 500, height = 420; + if(System.getProperty("os.name").startsWith("Mac")) + { + width = 570; + height = 460; + } + + Desktop.addInternalFrame(frame, "Preferences", width, height); + frame.setMinimumSize(new Dimension(width, height)); seqLimit.setSelected( Cache.getDefault("SHOW_JVSUFFIX", true)); + rightAlign.setSelected( Cache.getDefault("RIGHT_ALIGN_IDS", false)); fullScreen.setSelected( Cache.getDefault("SHOW_FULLSCREEN", false)); annotations.setSelected( Cache.getDefault("SHOW_ANNOTATIONS", true)); @@ -128,6 +136,8 @@ public class Preferences extends GPreferences smoothFont.setSelected(Cache.getDefault("ANTI_ALIAS", false)); + wrap.setSelected(Cache.getDefault("WRAP_ALIGNMENT", false)); + gapSymbolCB.addItem("-"); gapSymbolCB.addItem("."); @@ -202,6 +212,7 @@ public class Preferences extends GPreferences { Cache.applicationProperties.setProperty("SHOW_JVSUFFIX", Boolean.toString(seqLimit.isSelected())); + Cache.applicationProperties.setProperty("RIGHT_ALIGN_IDS", Boolean.toString(rightAlign.isSelected())); Cache.applicationProperties.setProperty("SHOW_FULLSCREEN", Boolean.toString(fullScreen.isSelected())); Cache.applicationProperties.setProperty("SHOW_ANNOTATIONS", Boolean.toString(annotations.isSelected())); @@ -218,6 +229,8 @@ public class Preferences extends GPreferences Cache.applicationProperties.setProperty("ANTI_ALIAS", Boolean.toString(smoothFont.isSelected())); + Cache.applicationProperties.setProperty("WRAP_ALIGNMENT", Boolean.toString(wrap.isSelected())); + Cache.applicationProperties.setProperty("STARTUP_FILE", startupFileTextfield.getText()); Cache.applicationProperties.setProperty("SHOW_STARTUP_FILE", Boolean.toString(startupCheckbox.isSelected()));