From: amwaterhouse Date: Tue, 1 May 2007 13:58:22 +0000 (+0000) Subject: set chains available X-Git-Tag: Release_2_3~92 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bcb00c5d25c6c0783a5057ab23a267d81cc1e353;p=jalview.git set chains available --- diff --git a/src/MCview/AppletPDBCanvas.java b/src/MCview/AppletPDBCanvas.java index 47aa94b..bfcd67a 100755 --- a/src/MCview/AppletPDBCanvas.java +++ b/src/MCview/AppletPDBCanvas.java @@ -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); diff --git a/src/MCview/AppletPDBViewer.java b/src/MCview/AppletPDBViewer.java index 2f8a90f..2471f32 100755 --- a/src/MCview/AppletPDBViewer.java +++ b/src/MCview/AppletPDBViewer.java @@ -33,6 +33,7 @@ public class AppletPDBViewer public AppletPDBViewer(PDBEntry pdbentry, SequenceI[] seq, + String [] chains, AlignmentPanel ap, String protocol) { @@ -45,7 +46,7 @@ public class AppletPDBViewer ex.printStackTrace(); } - pdbcanvas = new AppletPDBCanvas(pdbentry, seq, ap, protocol); + pdbcanvas = new AppletPDBCanvas(pdbentry, seq, chains, ap, protocol); add(pdbcanvas, BorderLayout.CENTER);