From: tcofoegbu Date: Tue, 4 Aug 2015 15:16:48 +0000 (+0100) Subject: JAL-1821 updated implementation of launchStructureViewer method to use currently... X-Git-Tag: Release_2_10_0~552 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a5741a64054ad42d0c950ba655bf7fdfda5bfd15;p=jalview.git JAL-1821 updated implementation of launchStructureViewer method to use currently selected sequences instead of trying to collate them from the viewport (as suggested by Jim) --- diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index f456817..d5e4cbc 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -790,8 +790,18 @@ public class StructureChooser extends GStructureChooser StructureViewer sViewer = new StructureViewer(ssm); if (pdbEntriesToView.length > 1) { - sViewer.viewStructures(pdbEntriesToView, alignPanel.av.collateForPDB(pdbEntriesToView), + ArrayList seqsMap = new ArrayList(); + for (SequenceI seq : sequences) + { + seqsMap.add(new SequenceI[] + { seq }); + } + SequenceI[][] collatedSeqs = seqsMap.toArray(new SequenceI[0][0]); + sViewer.viewStructures(pdbEntriesToView, collatedSeqs, alignPanel); + // sViewer.viewStructures(pdbEntriesToView, + // alignPanel.av.collateForPDB(pdbEntriesToView), + // alignPanel); } else {