From bc9b9a3dc799adc3d14ef23115074c8871d2746d Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 26 Aug 2008 10:09:55 +0000 Subject: [PATCH] uses shared singleton from jalview.gui.SequenceFetcher (consider revising so an instance of jalview.ws.SequenceFetcher is passed to constructor) --- src/jalview/ws/DBRefFetcher.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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()) { -- 1.7.10.2