From: amwaterhouse Date: Thu, 5 May 2005 10:35:00 +0000 (+0000) Subject: send rotCanvas sequence and viewport X-Git-Tag: Release_2_0~320 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=06fef82a8d6fcdcfadc58d747f9f774297cd639d;p=jalview.git send rotCanvas sequence and viewport --- 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);