remove comment
authoramwaterhouse <Andrew Waterhouse>
Wed, 25 May 2005 16:26:13 +0000 (16:26 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 25 May 2005 16:26:13 +0000 (16:26 +0000)
src/jalview/appletgui/CutAndPasteTransfer.java

index e4b8c9b..b774cdf 100755 (executable)
@@ -41,24 +41,22 @@ public class CutAndPasteTransfer extends GCutAndPasteTransfer
   protected void ok_actionPerformed(ActionEvent e)\r
   {\r
     String text = getText();\r
-    SequenceI [] sequences = null;\r
+    SequenceI[] sequences = null;\r
 \r
     String format = IdentifyFile.Identify(text, "Paste");\r
+    sequences = FormatAdapter.readFile(text, "Paste", format);\r
 \r
-  // if (FormatProperties.contains( format ))\r
-     sequences = FormatAdapter.readFile(text, "Paste", format);\r
-\r
-     if(sequences!=null)\r
-     {\r
-       AlignFrame af = new AlignFrame(new Alignment(sequences));\r
-       jalview.bin.JalviewLite.addFrame(af, "Cut & Paste input - "+format,\r
-                        AlignFrame.NEW_WINDOW_WIDTH,\r
-                        AlignFrame.NEW_WINDOW_HEIGHT);\r
-       af.statusBar.setText("Successfully pasted alignment file");\r
-     }\r
+    if (sequences != null)\r
+    {\r
+      AlignFrame af = new AlignFrame(new Alignment(sequences));\r
+      jalview.bin.JalviewLite.addFrame(af, "Cut & Paste input - " + format,\r
+                                       AlignFrame.NEW_WINDOW_WIDTH,\r
+                                       AlignFrame.NEW_WINDOW_HEIGHT);\r
+      af.statusBar.setText("Successfully pasted alignment file");\r
+    }\r
 \r
-     Frame frame = (Frame)this.getParent();\r
-     frame.setVisible(false);\r
+    Frame frame = (Frame)this.getParent();\r
+    frame.setVisible(false);\r
    }\r
 \r
    protected void cancel_actionPerformed(ActionEvent e) {\r