PASTE is constant in AppletFormatAdapter
authoramwaterhouse <Andrew Waterhouse>
Wed, 8 Mar 2006 16:49:09 +0000 (16:49 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 8 Mar 2006 16:49:09 +0000 (16:49 +0000)
src/jalview/appletgui/CutAndPasteTransfer.java

index 51d8d7f..173b031 100755 (executable)
@@ -96,15 +96,15 @@ public class CutAndPasteTransfer extends Panel implements ActionListener, MouseL
 \r
     if(pdbImport)\r
     {\r
-      new MCview.AppletPDBViewer(text, "Paste", seq, seqcanvas);\r
+      new MCview.AppletPDBViewer(text, AppletFormatAdapter.PASTE, seq, seqcanvas);\r
     }\r
     else\r
     {\r
       SequenceI[] sequences = null;\r
 \r
-      String format = IdentifyFile.Identify(text, "Paste");\r
+      String format = new IdentifyFile().Identify(text, AppletFormatAdapter.PASTE);\r
       try{\r
-        sequences = new AppletFormatAdapter().readFile(text, "Paste", format);\r
+        sequences = new AppletFormatAdapter().readFile(text, AppletFormatAdapter.PASTE, format);\r
       }catch(java.io.IOException ex)\r
       {\r
         ex.printStackTrace();\r