git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff96658
)
use canonical DbSource name in GUI box, and ensure only one instance of DbSourceProxy...
author
jprocter
<Jim Procter>
Thu, 31 Jul 2008 11:00:21 +0000
(11:00 +0000)
committer
jprocter
<Jim Procter>
Thu, 31 Jul 2008 11:00:21 +0000
(11:00 +0000)
src/jalview/gui/SequenceFetcher.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SequenceFetcher.java
b/src/jalview/gui/SequenceFetcher.java
index
2d0db64
..
1675304
100755
(executable)
--- a/
src/jalview/gui/SequenceFetcher.java
+++ b/
src/jalview/gui/SequenceFetcher.java
@@
-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