JAL-860 fixed grammar for one structure vs many structures associated with selection
[jalview.git] / src / jalview / ws / jws2 / dm / JabaOption.java
index 7090b43..6a139b0 100644 (file)
@@ -35,7 +35,7 @@ public class JabaOption implements jalview.ws.params.OptionI
   Option opt;
 
   @Override
-  public String getDefaultValue()
+  public String getValue()
   {
     return opt.getDefaultValue();
   }
@@ -72,14 +72,16 @@ public class JabaOption implements jalview.ws.params.OptionI
   }
 
   @Override
-  public void setDefaultValue(String selectedItem)
+  public void setValue(String selectedItem)
   {
-    try {
+    try
+    {
       opt.setDefaultValue(selectedItem);
     } catch (Exception e)
     {
       e.printStackTrace();
-      throw new Error("Implementation error: cannot set Jaba Option to a value outside its allowed value range!");
+      throw new Error(
+              "Implementation error: cannot set Jaba Option to a value outside its allowed value range!");
     }
   }
 
@@ -90,12 +92,14 @@ public class JabaOption implements jalview.ws.params.OptionI
   }
 
   /**
-   * get the underlying Jaba option or parameter object. Note - use copy first if you want to modify the value of the option.
+   * get the underlying Jaba option or parameter object. Note - use copy first
+   * if you want to modify the value of the option.
+   * 
    * @return
    */
   public Option getOption()
   {
     return opt;
   }
-  
+
 }