git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IO rearrangement for AMSAFile output
[jalview.git]
/
src
/
jalview
/
io
/
AppletFormatAdapter.java
diff --git
a/src/jalview/io/AppletFormatAdapter.java
b/src/jalview/io/AppletFormatAdapter.java
index
9da144a
..
df432cc
100755
(executable)
--- a/
src/jalview/io/AppletFormatAdapter.java
+++ b/
src/jalview/io/AppletFormatAdapter.java
@@
-36,7
+36,7
@@
public class AppletFormatAdapter
public static final String[] WRITEABLE_FORMATS = new String[]
{
public static final String[] WRITEABLE_FORMATS = new String[]
{
- "BLC", "CLUSTAL", "FASTA", "MSF", "PileUp", "PIR", "PFAM" //, "AMSA"
+ "BLC", "CLUSTAL", "FASTA", "MSF", "PileUp", "PIR", "PFAM" , "AMSA"
};
public static String INVALID_CHARACTERS = "Contains invalid characters";
};
public static String INVALID_CHARACTERS = "Contains invalid characters";
@@
-218,9
+218,11
@@
public class AppletFormatAdapter
{
afile = new StockholmFile();
}
{
afile = new StockholmFile();
}
- else if (format.equals("AMSA"))
+ else if (format.equalsIgnoreCase("AMSA"))
{
afile = new AMSAFile(alignment);
{
afile = new AMSAFile(alignment);
+ } else {
+ throw new Exception("Implementation error: Unknown file format string");
}
afile.addJVSuffix(jvsuffix);
}
afile.addJVSuffix(jvsuffix);