From 5d55702b40b8a0b198a0a22b4fbb8458fa2bc7f4 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 4 Dec 2008 10:27:03 +0000 Subject: [PATCH] sequence fetchers generated for local das sequence sources --- src/jalview/ws/SequenceFetcher.java | 57 ++++++++++++++++++++++++++--------- 1 file changed, 43 insertions(+), 14 deletions(-) diff --git a/src/jalview/ws/SequenceFetcher.java b/src/jalview/ws/SequenceFetcher.java index b20ebbb..2be142a 100644 --- a/src/jalview/ws/SequenceFetcher.java +++ b/src/jalview/ws/SequenceFetcher.java @@ -31,6 +31,7 @@ import jalview.datamodel.Alignment; import jalview.datamodel.AlignmentI; import jalview.datamodel.DBRefSource; import jalview.datamodel.SequenceI; +import jalview.ws.dbsources.DasSequenceSource; import jalview.ws.seqfetcher.ASequenceFetcher; import jalview.ws.seqfetcher.DbSourceProxy; @@ -319,23 +320,45 @@ public class SequenceFetcher extends ASequenceFetcher { DasSource[] sources = jalview.ws.DasSequenceFeatureFetcher .getDASSources(); - for (int s = 0; s < sources.length; s++) + if (sources!=null) { - Das1Source d1s = null; - if (sources[s].hasCapability("sequence")) + for (int s=0; sources!=null && s