use canonical DbSource name in GUI box, and ensure only one instance of DbSourceProxy...
authorjprocter <Jim Procter>
Thu, 31 Jul 2008 11:00:21 +0000 (11:00 +0000)
committerjprocter <Jim Procter>
Thu, 31 Jul 2008 11:00:21 +0000 (11:00 +0000)
src/jalview/gui/SequenceFetcher.java

index 2d0db64..1675304 100755 (executable)
@@ -66,9 +66,13 @@ extends JPanel implements Runnable
       if (!sources.containsValue(dbs[i]))
       {  
         String name = sfetch.getSourceProxy(dbs[i]).getDbName();
-
-        sources.put(name, dbs[i]);
-        database.addItem(name);
+        // duplicate source names are thrown away, here.
+        if (!sources.containsKey(name))
+        {
+          database.addItem(name);
+        }
+        // overwrite with latest version of the retriever for this source
+        sources.put(name, dbs[i]);        
       }
     }
     try