SequenceI[] sequences = null;\r
\r
String format = IdentifyFile.Identify(text, "Paste");\r
- sequences = FormatAdapter.readFile(text, "Paste", format);\r
+ sequences = new AppletFormatAdapter().readFile(text, "Paste", format);\r
\r
if (sequences != null)\r
{\r
- AlignFrame af = new AlignFrame(new Alignment(sequences), applet);\r
- jalview.bin.JalviewLite.addFrame(af, "Cut & Paste input - " + format,\r
- AlignFrame.NEW_WINDOW_WIDTH,\r
- AlignFrame.NEW_WINDOW_HEIGHT);\r
+ AlignFrame af = new AlignFrame(new Alignment(sequences), applet,\r
+ "Cut & Paste input - " + format);\r
af.statusBar.setText("Successfully pasted alignment file");\r
}\r
\r