--- /dev/null
+package jalview.ws.api;
+
+import jalview.ws.params.ParamManager;
+
+public abstract class ServiceWithParameters extends UIinfo
+{
+
+ public ServiceWithParameters(String serviceType, String action,
+ String name, String description, String hosturl)
+ {
+ super(serviceType, action, name, description, hosturl);
+ }
+
+ public abstract void initParamStore(ParamManager userParameterStore);
+
+}
import jalview.gui.AlignFrame;
import jalview.gui.Desktop;
import jalview.util.MessageManager;
-import jalview.ws.api.UIinfo;
+import jalview.ws.api.ServiceWithParameters;
import jalview.ws.jws2.JabaParamStore;
import jalview.ws.jws2.MsaWSClient;
import jalview.ws.jws2.SequenceAnnotationWSClient;
import jalview.ws.params.ParamDatastoreI;
+import jalview.ws.params.ParamManager;
import java.io.Closeable;
import compbio.metadata.PresetManager;
import compbio.metadata.RunnerConfig;
-public class Jws2Instance extends UIinfo
+public class Jws2Instance extends ServiceWithParameters
{
public JABAService service;
super.finalize();
}
+ @Override
public ParamDatastoreI getParamStore()
{
if (paramStore == null)
{
return aaui;
}
+
+ /**
+ * initialise a parameter store for this service
+ *
+ * @param userParameterStore
+ * - the user ParamManager (e.g. Desktop.getUserParameterStore() )
+ */
+ @Override
+ public void initParamStore(ParamManager userParameterStore)
+ {
+ if (paramStore == null)
+ {
+ paramStore = new JabaParamStore(this, userParameterStore);
+ }
+ }
}