-
- database.addItem(noDbSelected);
- /*
- * Dynamically generated database list will need a translation function from
- * internal source to externally distinct names. UNIPROT and UP_NAME are
- * identical DB sources, and should be collapsed.
- */
-
- String dbs[] = sfetch.getOrderedSupportedSources();
- for (int i = 0; i < dbs.length; i++)
- {
- if (!sources.containsValue(dbs[i]))
- {
- String name = sfetch.getSourceProxy(dbs[i]).getDbName();
- // 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]);
- }
- }