added d martin to authors and fixed faq/discuss message
[jalview.git] / src / jalview / gui / DasSourceBrowser.java
index e695d3d..91711dc 100755 (executable)
@@ -1,17 +1,17 @@
 /*\r
- * Jalview - A Sequence Alignment Editor and Viewer\r
- * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
- *\r
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)\r
+ * Copyright (C) 2008 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
+ * \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
+ * \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
@@ -46,8 +46,7 @@ public class DasSourceBrowser
    * true if thread is running and we are talking to DAS registry service\r
    */\r
   public boolean loadingDasSources = false;\r
-\r
-  public DasSourceBrowser()\r
+  protected static String getDasRegistryURL()\r
   {\r
     String registry = jalview.bin.Cache.getDefault("DAS_REGISTRY_URL",\r
         DEFAULT_REGISTRY);\r
@@ -57,7 +56,12 @@ public class DasSourceBrowser
       jalview.bin.Cache.setProperty("DAS_REGISTRY_URL", DEFAULT_REGISTRY);\r
       registry = DEFAULT_REGISTRY;\r
     }\r
-\r
+    return registry;\r
+  }\r
+  public DasSourceBrowser()\r
+  {\r
+    String registry = getDasRegistryURL();\r
+    \r
     registryURL.setText(registry);\r
 \r
     setSelectedFromProperties();\r