/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
*/
package jalview.ws.jws2;
+import jalview.util.MessageManager;
+import jalview.ws.jws2.dm.JabaOption;
+import jalview.ws.jws2.dm.JabaParameter;
+import jalview.ws.jws2.dm.JabaWsParamSet;
+import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.ArgumentI;
+import jalview.ws.params.ParamDatastoreI;
+import jalview.ws.params.ParamManager;
+import jalview.ws.params.WsParamSetI;
+
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.StringTokenizer;
-import org.jmol.util.ArrayUtil;
import compbio.metadata.Argument;
import compbio.metadata.Option;
import compbio.metadata.Parameter;
import compbio.metadata.PresetManager;
import compbio.metadata.RunnerConfig;
-import jalview.util.MessageManager;
-import jalview.ws.jws2.dm.JabaOption;
-import jalview.ws.jws2.dm.JabaParameter;
-import jalview.ws.jws2.dm.JabaWsParamSet;
-import jalview.ws.jws2.jabaws2.Jws2Instance;
-import jalview.ws.params.ArgumentI;
-import jalview.ws.params.ParamDatastoreI;
-import jalview.ws.params.ParamManager;
-import jalview.ws.params.WsParamSetI;
-
public class JabaParamStore implements ParamDatastoreI
{
}
if (narg == null)
{
- throw new Error(MessageManager.formatMessage("error.implementation_error_cannot_handle_jaba_param", new String[]{rg.getClass().toString()}));
+ throw new Error(MessageManager.formatMessage(
+ "error.implementation_error_cannot_handle_jaba_param",
+ new String[] { rg.getClass().toString() }));
}
else
{
.getOption() : null;
if (narg == null)
{
- throw new Error(MessageManager.formatMessage("error.implementation_error_cannot_handle_jaba_param", new String[]{rg.getClass().toString()}));
+ throw new Error(MessageManager.formatMessage(
+ "error.implementation_error_cannot_handle_jaba_param",
+ new String[] { rg.getClass().toString() }));
}
else
{
}
if (servicePresets.containsKey(name))
{
- throw new Error(MessageManager.getString("error.implementation_error_attempt_to_delete_service_preset"));
+ throw new Error(
+ MessageManager
+ .getString("error.implementation_error_attempt_to_delete_service_preset"));
}
}
List<ArgumentI> jobParams)
{
JabaWsParamSet jps = new JabaWsParamSet(presetName, text, jobParams);
- jps.setApplicableUrls(new String[]
- { service.getUri() });
+ jps.setApplicableUrls(new String[] { service.getUri() });
editedParams.put(jps.getName(), jps);
if (manager != null)
{
: getPreset(presetName));
if (jps == null)
{
- throw new Error(MessageManager.formatMessage("error.implementation_error_cannot_locate_oldname_presetname", new String[]{oldName,presetName}));
+ throw new Error(
+ MessageManager
+ .formatMessage(
+ "error.implementation_error_cannot_locate_oldname_presetname",
+ new String[] { oldName, presetName }));
}
jps.setName(presetName);
jps.setDescription(text);
jps.setArguments(jobParams);
- jps.setApplicableUrls(new String[]
- { service.getUri() });
+ jps.setApplicableUrls(new String[] { service.getUri() });
if (oldName != null && !oldName.equals(jps.getName()))
{
editedParams.remove(oldName);
{
if (!involves(urls))
{
- throw new IOException(MessageManager.getString("error.implementation_error_cannot_find_service_url_in_given_set"));
+ throw new IOException(
+ MessageManager
+ .getString("error.implementation_error_cannot_find_service_url_in_given_set"));
}
JabaWsParamSet wsp = new JabaWsParamSet();
{
if (!involves(pset.getApplicableUrls()))
{
- throw new IOException(MessageManager.formatMessage("error.implementation_error_cannot_find_service_url_in_given_set_param_store", new String[]{service.getUri()}));
+ throw new IOException(
+ MessageManager
+ .formatMessage(
+ "error.implementation_error_cannot_find_service_url_in_given_set_param_store",
+ new String[] { service.getUri() }));
}
if (!(pset instanceof JabaWsParamSet))
{
- throw new Error(MessageManager.getString("error.implementation_error_jabaws_param_set_only_handled_by"));
+ throw new Error(
+ MessageManager
+ .getString("error.implementation_error_jabaws_param_set_only_handled_by"));
}
StringBuffer rslt = new StringBuffer();