From 06fef82a8d6fcdcfadc58d747f9f774297cd639d Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 5 May 2005 10:35:00 +0000 Subject: [PATCH] send rotCanvas sequence and viewport --- src/jalview/gui/PopupMenu.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 3177bfc..aed4a33 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -589,14 +589,10 @@ public class PopupMenu extends JPopupMenu EBIFetchClient ebi = new EBIFetchClient(); String[] result = ebi.fetchData("pdb:" + sequence.getPDBId(), null, null); + System.out.println("Got "+ sequence.getPDBId() ); PDBfile pdb = new PDBfile(result); - sequence.setPDBfile(pdb); - ( (PDBChain) pdb.chains.elementAt(sequence.maxchain)).isVisible = true; - ( (PDBChain) pdb.chains.elementAt(sequence.maxchain)).sequence = sequence; - // ( (PDBChain)pdb.chains.elementAt(sequence.maxchain)).colourBySequence(); - - rotCanvas rc = new rotCanvas(pdb); + rotCanvas rc = new rotCanvas(pdb, sequence, ap.av); JInternalFrame frame = new JInternalFrame(); frame.setContentPane(rc); Desktop.addInternalFrame(frame,sequence.getName()+" "+ sequence.getPDBId(), 400, 400); -- 1.7.10.2