From bcb00c5d25c6c0783a5057ab23a267d81cc1e353 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 1 May 2007 13:58:22 +0000 Subject: [PATCH] set chains available --- src/MCview/AppletPDBCanvas.java | 3 ++- src/MCview/AppletPDBViewer.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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); -- 1.7.10.2