X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fgui%2FDasSourceBrowser.java;h=91711dcd727cd1c21ebd117a195a83d4ff53f921;hb=3b1dd2adcb9dfcd941566e27a02e6611caf75b23;hp=e695d3d44d5524869019cd130130a62cdd14e1dc;hpb=dbbd8851fe0e30aa9606657b5f4eb41e0db21563;p=jalview.git diff --git a/src/jalview/gui/DasSourceBrowser.java b/src/jalview/gui/DasSourceBrowser.java index e695d3d..91711dc 100755 --- a/src/jalview/gui/DasSourceBrowser.java +++ b/src/jalview/gui/DasSourceBrowser.java @@ -1,17 +1,17 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer - * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle - * + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4) + * Copyright (C) 2008 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 * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA @@ -46,8 +46,7 @@ public class DasSourceBrowser * true if thread is running and we are talking to DAS registry service */ public boolean loadingDasSources = false; - - public DasSourceBrowser() + protected static String getDasRegistryURL() { String registry = jalview.bin.Cache.getDefault("DAS_REGISTRY_URL", DEFAULT_REGISTRY); @@ -57,7 +56,12 @@ public class DasSourceBrowser jalview.bin.Cache.setProperty("DAS_REGISTRY_URL", DEFAULT_REGISTRY); registry = DEFAULT_REGISTRY; } - + return registry; + } + public DasSourceBrowser() + { + String registry = getDasRegistryURL(); + registryURL.setText(registry); setSelectedFromProperties();