todo comment
[jalview.git] / src / jalview / io / AppletFormatAdapter.java
index 9da144a..df432cc 100755 (executable)
@@ -36,7 +36,7 @@ public class AppletFormatAdapter
 
   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";
@@ -218,9 +218,11 @@ public class AppletFormatAdapter
       {
         afile = new StockholmFile();
       }
-      else if (format.equals("AMSA"))
+      else if (format.equalsIgnoreCase("AMSA"))
       {
         afile = new AMSAFile(alignment);
+      } else {
+        throw new Exception("Implementation error: Unknown file format string");
       }
 
       afile.addJVSuffix(jvsuffix);