X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FDasSourceBrowser.java;h=36e51647c1e4491ff79221cdfb717d48a89b5d29;hb=76b6b31c53b099a3034e0622ec78d4c2b455a309;hp=f57967c6900c78c5f58300383ef517a98c21b510;hpb=42ed2d813b3b8e7c9c80d79e1c8e1ded61ec6dd9;p=jalview.git diff --git a/src/jalview/gui/DasSourceBrowser.java b/src/jalview/gui/DasSourceBrowser.java index f57967c..36e5164 100755 --- a/src/jalview/gui/DasSourceBrowser.java +++ b/src/jalview/gui/DasSourceBrowser.java @@ -27,8 +27,9 @@ import javax.swing.*; import java.util.*; -import org.biojava.services.das.registry.DasCoordinateSystem; -import org.biojava.services.das.registry.DasSource; +import org.biojava.dasobert.dasregistry.DasCoordinateSystem; +import org.biojava.dasobert.dasregistry.DasSource; +import org.biojava.dasobert.dasregistry.Das1Source; import java.awt.BorderLayout; public class DasSourceBrowser extends GDasSourceBrowser @@ -40,19 +41,22 @@ public class DasSourceBrowser extends GDasSourceBrowser Vector selectedSources; + String DEFAULT_REGISTRY = "http://das.sanger.ac.uk/registry/das1/sources/"; + + public DasSourceBrowser() { registryURL.setText(jalview.bin.Cache.getDefault("DAS_REGISTRY_URL", - "http://servlet.sanger.ac.uk/dasregistry/services/das_registry") ); + DEFAULT_REGISTRY) ); setSelectedFromProperties(); displayFullDetails(null); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); - capabilities.addListSelectionListener(this); - coords1.addListSelectionListener(this); - coords2.addListSelectionListener(this); + filter1.addListSelectionListener(this); + filter2.addListSelectionListener(this); + filter3.addListSelectionListener(this); //Ask to be notified of selection changes. ListSelectionModel rowSM = table.getSelectionModel(); @@ -60,10 +64,6 @@ public class DasSourceBrowser extends GDasSourceBrowser { public void valueChanged(ListSelectionEvent e) { - //Ignore extra messages. - if (e.getValueIsAdjusting()) - return; - ListSelectionModel lsm = (ListSelectionModel) e.getSource(); if (!lsm.isSelectionEmpty()) { @@ -212,7 +212,9 @@ public class DasSourceBrowser extends GDasSourceBrowser text.append("Description: " + dasSources[i].getDescription() + "
"); - if (dasSources[i].getHelperurl().length() > 0) + + if (dasSources[i].getHelperurl()!=null + && dasSources[i].getHelperurl().length() > 0) { text.append("