Accession and name unbounded
[jalview.git] / src / jalview / io / FileLoader.java
index d2d477e..26aff08 100755 (executable)
@@ -1,3 +1,22 @@
+/*\r
+* Jalview - A Sequence Alignment Editor and Viewer\r
+* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+*\r
+* This program is free software; you can redistribute it and/or\r
+* modify it under the terms of the GNU General Public License\r
+* as published by the Free Software Foundation; either version 2\r
+* of the License, or (at your option) any later version.\r
+*\r
+* This program is distributed in the hope that it will be useful,\r
+* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+* GNU General Public License for more details.\r
+*\r
+* You should have received a copy of the GNU General Public License\r
+* along with this program; if not, write to the Free Software\r
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
+*/\r
+\r
 package jalview.io;\r
 \r
 import jalview.gui.AlignFrame;\r
@@ -6,7 +25,6 @@ import javax.swing.JOptionPane;
 import jalview.datamodel.Alignment;\r
 import jalview.gui.Desktop;\r
 import jalview.datamodel.SequenceI;\r
-import jalview.gui.Preferences;\r
 \r
 public class FileLoader\r
 {\r
@@ -25,7 +43,7 @@ public class FileLoader
     {\r
       try\r
       {\r
-        Thread.sleep(50);\r
+        Thread.sleep(500);\r
       }\r
       catch (Exception ex)\r
       {}\r
@@ -62,7 +80,7 @@ public class FileLoader
     {\r
       if (FormatAdapter.formats.contains(format))\r
       {\r
-        sequences = FormatAdapter.readFile(file, protocol, format);\r
+        sequences = new FormatAdapter().readFile(file, protocol, format);\r
       }\r
 \r
       if ( (sequences != null) && (sequences.length > 0))\r
@@ -77,7 +95,7 @@ public class FileLoader
 \r
         try\r
         {\r
-          af.setMaximum(Preferences.showFullscreen);\r
+          af.setMaximum(jalview.bin.Cache.getDefault("SHOW_FULLSCREEN", false));\r
         }\r
         catch (Exception ex)\r
         {\r