formatting
[jalview.git] / src / jalview / ws / rest / params / Alignment.java
index 0cd1578..7782c20 100644 (file)
@@ -1,6 +1,6 @@
 /*******************************************************************************
  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
- * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
  *
  * This file is part of Jalview.
  *
@@ -68,7 +68,7 @@ public class Alignment extends InputType
   /**
    * input data as a file upload rather than inline content
    */
-  public boolean writeAsFile=false;
+  public boolean writeAsFile = false;
 
   @Override
   public ContentBody formatForInput(RestJob rj)
@@ -186,19 +186,24 @@ public class Alignment extends InputType
     }
     return false;
   }
+
   @Override
   public List<OptionI> getOptions()
   {
     List<OptionI> lst = getBaseOptions();
-    lst.add(new BooleanOption("jvsuffix","Append jalview style /start-end suffix to ID", false, false, jvsuffix, null));
-    lst.add(new BooleanOption("writeasfile","Append jalview style /start-end suffix to ID", false, false, writeAsFile, null));
-    
-    lst.add(new Option("format",
-            "Alignment upload format", true, "FASTA",
-            format, Arrays.asList(jalview.io.FormatAdapter.WRITEABLE_FORMATS), null));
-    lst.add(createMolTypeOption("type", "Sequence type", false, type,
+    lst.add(new BooleanOption("jvsuffix",
+            "Append jalview style /start-end suffix to ID", false, false,
+            jvsuffix, null));
+    lst.add(new BooleanOption("writeasfile",
+            "Append jalview style /start-end suffix to ID", false, false,
+            writeAsFile, null));
+
+    lst.add(new Option("format", "Alignment upload format", true, "FASTA",
+            format, Arrays
+                    .asList(jalview.io.FormatAdapter.WRITEABLE_FORMATS),
             null));
-    
+    lst.add(createMolTypeOption("type", "Sequence type", false, type, null));
+
     return lst;
   }