\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
- sequences = new AppletFormatAdapter().readFile(text, "Paste", format);\r
-\r
+ String format = new IdentifyFile().Identify(text, AppletFormatAdapter.PASTE);\r
+ try{\r
+ sequences = new AppletFormatAdapter().readFile(text, AppletFormatAdapter.PASTE, format);\r
+ }catch(java.io.IOException ex)\r
+ {\r
+ ex.printStackTrace();\r
+ }\r
if (sequences != null)\r
{\r
AlignFrame af = new AlignFrame(new Alignment(sequences), applet,\r