JAL-1821 updated implementation of launchStructureViewer method to use currently...
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 4 Aug 2015 15:16:48 +0000 (16:16 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 4 Aug 2015 15:16:48 +0000 (16:16 +0100)
src/jalview/gui/StructureChooser.java

index f456817..d5e4cbc 100644 (file)
@@ -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<SequenceI[]> seqsMap = new ArrayList<SequenceI[]>();
+      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
     {