JAL-976 JAL-975 JAL-1119 - pass on any existing parameters to initialise the service...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 19 Jun 2012 16:33:18 +0000 (17:33 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 19 Jun 2012 16:33:18 +0000 (17:33 +0100)
src/jalview/ws/jws2/Jws2Client.java

index e6b4cf5..2c8c581 100644 (file)
@@ -89,7 +89,9 @@ public abstract class Jws2Client extends jalview.ws.WSClient
         sh.paramStore = new JabaParamStore(sh,
                 Desktop.getUserParameterStore());
       }
-      WsJobParameters jobParams = new WsJobParameters(sh, preset);
+      WsJobParameters jobParams = (preset==null && paramset!=null && paramset.size()>0) 
+              ?  new WsJobParameters(null, sh, null, paramset) 
+        : new WsJobParameters(sh, preset);
       if (adjustingExisting)
       {
         jobParams.setName("Adjusting parameters for existing Calculation");