CandP takes AlignFrame, not applet
authoramwaterhouse <Andrew Waterhouse>
Thu, 16 Mar 2006 15:18:17 +0000 (15:18 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 16 Mar 2006 15:18:17 +0000 (15:18 +0000)
src/jalview/appletgui/APopupMenu.java
src/jalview/appletgui/AnnotationLabels.java

index a9a0e35..b85c7d2 100755 (executable)
@@ -181,9 +181,9 @@ public class APopupMenu
 \r
   void addPDB(Sequence seq)\r
   {\r
-    CutAndPasteTransfer cap = new CutAndPasteTransfer(true, ap.alignFrame.applet);\r
+    CutAndPasteTransfer cap = new CutAndPasteTransfer(true, ap.alignFrame);\r
     cap.setText("Paste your PDB file here.");\r
-    cap.setPDBImport(seq, ap.seqPanel.seqCanvas);\r
+    cap.setPDBImport(seq);\r
     Frame frame = new Frame();\r
     frame.add(cap);\r
     jalview.bin.JalviewLite.addFrame(frame, "Paste PDB file ", 400, 300);\r
index 3ef61e6..ae47b72 100755 (executable)
@@ -83,7 +83,7 @@ public class AnnotationLabels
     }\r
     else if (evt.getActionCommand().equals(OUTPUT_TEXT))\r
     {\r
-      CutAndPasteTransfer cap = new CutAndPasteTransfer(false, ap.alignFrame.applet);\r
+      CutAndPasteTransfer cap = new CutAndPasteTransfer(false, ap.alignFrame);\r
       Frame frame = new Frame();\r
       frame.add(cap);\r
       jalview.bin.JalviewLite.addFrame(frame,\r