From: jprocter Date: Tue, 26 Aug 2008 10:09:55 +0000 (+0000) Subject: uses shared singleton from jalview.gui.SequenceFetcher (consider revising so an insta... X-Git-Tag: Release_2_4~7 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bc9b9a3dc799adc3d14ef23115074c8871d2746d;p=jalview.git uses shared singleton from jalview.gui.SequenceFetcher (consider revising so an instance of jalview.ws.SequenceFetcher is passed to constructor) --- diff --git a/src/jalview/ws/DBRefFetcher.java b/src/jalview/ws/DBRefFetcher.java index b007e13..82b411a 100644 --- a/src/jalview/ws/DBRefFetcher.java +++ b/src/jalview/ws/DBRefFetcher.java @@ -31,7 +31,9 @@ import jalview.ws.dbsources.Uniprot; import jalview.ws.ebi.EBIFetchClient; /** - * DOCUMENT ME! + * Implements a runnable for validating a sequence + * against external databases and then propagating + * references and features onto the sequence(s) * * @author $author$ * @version $Revision$ @@ -80,7 +82,8 @@ public class DBRefFetcher implements Runnable ds[i] = seqs[i]; } this.dataset = ds; - sfetcher = new SequenceFetcher(); + // TODO Jalview 2.5 lots of this code should be in the gui package! + sfetcher = jalview.gui.SequenceFetcher.getSequenceFetcherSingleton(af); // select appropriate databases based on alignFrame context. if (af.getViewport().getAlignment().isNucleotide()) {