- String protocol = "File";\r
- String format = new IdentifyFile().Identify(file, protocol);\r
- SequenceI[] sequences = new FormatAdapter().readFile(file, protocol,\r
- format);\r
-\r
- FastaFile ff = new FastaFile();\r
- Clipboard c = Toolkit.getDefaultToolkit().getSystemClipboard();\r
- c.setContents(new StringSelection(ff.print(sequences)), Desktop.instance);\r
-\r
- this.paste(false);\r
+ String format = new IdentifyFile().Identify(file, FormatAdapter.FILE);\r
+ new FileLoader().LoadFile(viewport, file, FormatAdapter.FILE, format);\r