From: tcofoegbu Date: Wed, 25 Nov 2015 15:29:41 +0000 (+0000) Subject: JAL-1479 refactored DBRef fetching code to StructureChooser to enable applet build X-Git-Tag: Release_2_10_0~333 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=26a8bcef19885071a20e238d06c514404ecbc573;p=jalview.git JAL-1479 refactored DBRef fetching code to StructureChooser to enable applet build --- diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index c86a90f..720dc9e 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -776,6 +776,9 @@ public class StructureChooser extends GStructureChooser final AlignmentPanel alignPanel, final SequenceI[] sequences) { final StructureViewer sViewer = new StructureViewer(ssm); + + new jalview.ws.DBRefFetcher(sequences, null, null, null, false) + .fetchDBRefs(true); new Thread(new Runnable() { @Override @@ -786,8 +789,6 @@ public class StructureChooser extends GStructureChooser ArrayList seqsMap = new ArrayList(); for (SequenceI seq : sequences) { - new jalview.ws.DBRefFetcher(new SequenceI[] { seq }, null, - null, null, false).fetchDBRefs(true); seqsMap.add(new SequenceI[] { seq }); } SequenceI[][] collatedSeqs = seqsMap.toArray(new SequenceI[0][0]); diff --git a/src/jalview/ws/sifts/SiftsClient.java b/src/jalview/ws/sifts/SiftsClient.java index 32bb7b7..00da2fc 100644 --- a/src/jalview/ws/sifts/SiftsClient.java +++ b/src/jalview/ws/sifts/SiftsClient.java @@ -318,14 +318,6 @@ public class SiftsClient implements SiftsClientI else { DBRefEntry[] dbRefs = seq.getDBRefs(); - // if (dbRefs == null || dbRefs.length < 1) - // { - // // final SequenceI[] seqs = new SequenceI[] { seq }; - // // new jalview.ws.DBRefFetcher(seqs, null, null, null, false) - // // .fetchDBRefs(true); - // dbRefs = seq.getDBRefs(); - // } - if (dbRefs == null || dbRefs.length < 1) { throw new SiftsException("Could not get source DB Ref");