X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fjws2%2Fdm%2FJabaOption.java;h=c313bd1e086718a6f5054eae5f3b233d21cbd51b;hb=691798cf6a90094f4c83e79fd5c703457b1135b0;hp=7090b4386f34984d6f57217c282ea7d28cac6947;hpb=153dd62dc91da13ae732600e6ea55ddbe15eab39;p=jalview.git diff --git a/src/jalview/ws/jws2/dm/JabaOption.java b/src/jalview/ws/jws2/dm/JabaOption.java index 7090b43..c313bd1 100644 --- a/src/jalview/ws/jws2/dm/JabaOption.java +++ b/src/jalview/ws/jws2/dm/JabaOption.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6) - * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7) + * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle * * This file is part of Jalview. * @@ -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; } - + }