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