set chains available
authoramwaterhouse <Andrew Waterhouse>
Tue, 1 May 2007 13:58:22 +0000 (13:58 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 1 May 2007 13:58:22 +0000 (13:58 +0000)
src/MCview/AppletPDBCanvas.java
src/MCview/AppletPDBViewer.java

index 47aa94b..bfcd67a 100755 (executable)
@@ -83,6 +83,7 @@ public class AppletPDBCanvas
 
   public AppletPDBCanvas(PDBEntry pdbentry,
                          SequenceI[] seq,
+                         String [] chains,
                          AlignmentPanel ap,
                          String protocol)
 
@@ -94,7 +95,7 @@ public class AppletPDBCanvas
     ssm = StructureSelectionManager.getStructureSelectionManager();
 
     try{
-      pdb = ssm.setMapping(seq, pdbentry.getFile(), protocol);
+      pdb = ssm.setMapping(seq, chains, pdbentry.getFile(), protocol);
 
       if(protocol.equals(jalview.io.AppletFormatAdapter.PASTE))
        pdbentry.setFile("INLINE"+pdb.id);
index 2f8a90f..2471f32 100755 (executable)
@@ -33,6 +33,7 @@ public class AppletPDBViewer
 \r
   public AppletPDBViewer(PDBEntry pdbentry,\r
                          SequenceI[] seq,\r
+                         String [] chains,\r
                          AlignmentPanel ap,\r
                          String protocol)\r
   {\r
@@ -45,7 +46,7 @@ public class AppletPDBViewer
       ex.printStackTrace();\r
     }\r
 \r
-    pdbcanvas = new AppletPDBCanvas(pdbentry, seq, ap, protocol);\r
+    pdbcanvas = new AppletPDBCanvas(pdbentry, seq, chains, ap, protocol);\r
 \r
 \r
     add(pdbcanvas, BorderLayout.CENTER);\r