}\r
else if(alignFrame!=null)\r
{\r
- SequenceI[] sequences = null;\r
+ Alignment al = null;\r
\r
String format = new IdentifyFile().Identify(text, AppletFormatAdapter.PASTE);\r
try{\r
- sequences = new AppletFormatAdapter().readFile(text, AppletFormatAdapter.PASTE, format);\r
+ al = new AppletFormatAdapter().readFile(text, AppletFormatAdapter.PASTE, format);\r
}catch(java.io.IOException ex)\r
{\r
ex.printStackTrace();\r
}\r
- if (sequences != null)\r
+ if (al != null)\r
{\r
- AlignFrame af = new AlignFrame(new Alignment(sequences), alignFrame.viewport.applet,\r
+ AlignFrame af = new AlignFrame(al, alignFrame.viewport.applet,\r
"Cut & Paste input - " + format,\r
false);\r
af.statusBar.setText("Successfully pasted alignment file");\r