- if (FormatProperties.contains(format))\r
- sequences = FormatAdapter.read(file, protocol, format);\r
+ if (FormatAdapter.formats.contains(format))\r
+ sequences = FormatAdapter.readFile(file, protocol, format);\r
\r
if (sequences != null && sequences.length>0)\r
{\r
AlignFrame af = new AlignFrame(new Alignment(sequences));\r
addInternalFrame(af, file, AlignFrame.NEW_WINDOW_WIDTH, AlignFrame.NEW_WINDOW_HEIGHT);\r
af.statusBar.setText("Successfully loaded file " + file);\r
\r
if (sequences != null && sequences.length>0)\r
{\r
AlignFrame af = new AlignFrame(new Alignment(sequences));\r
addInternalFrame(af, file, AlignFrame.NEW_WINDOW_WIDTH, AlignFrame.NEW_WINDOW_HEIGHT);\r
af.statusBar.setText("Successfully loaded file " + file);\r
String format = IdentifyFile.Identify(cap.getText(), "Paste");\r
SequenceI [] sequences = null;\r
\r
String format = IdentifyFile.Identify(cap.getText(), "Paste");\r
SequenceI [] sequences = null;\r
\r
- if (FormatProperties.contains( format ))\r
- sequences = FormatAdapter.read(cap.getText(), "Paste", format);\r
+ if (FormatAdapter.formats.contains( format ))\r
+ sequences = FormatAdapter.readFile(cap.getText(), "Paste", format);\r