*/
package jalview.ws;
+import jalview.gui.AlignFrame;
import jalview.gui.WebserviceInfo;
+import jalview.ws.api.UIinfo;
public abstract class WSClient // implements WSMenuEntryProviderI
{
* mappings between abstract interface names and menu entries
*/
protected java.util.Hashtable ServiceActions;
+
+ /**
+ * alignFrame associated with this client
+ */
+ protected AlignFrame alignFrame;
{
ServiceActions = new java.util.Hashtable();
ServiceActions.put("MsaWS", "Multiple Sequence Alignment");
public WSClient()
{
}
+
+ protected WebserviceInfo setWebService(UIinfo serv, boolean b)
+ {
+ WebServiceName = serv.getName();
+ WebServiceJobTitle = serv.getActionText();
+ WsURL = serv.getHostURL();
+ if (!b)
+ {
+ return new WebserviceInfo(WebServiceJobTitle,
+ WebServiceJobTitle + " using service hosted at "
+ + WsURL + "\n"
+ + (serv.getDescription() != null
+ ? serv.getDescription()
+ : ""),
+ false);
+ }
+ return null;
+ }
}
import jalview.gui.AlignFrame;
import jalview.gui.Desktop;
import jalview.gui.JvSwingUtils;
-import jalview.gui.WebserviceInfo;
import jalview.gui.WsJobParameters;
import jalview.util.MessageManager;
-import jalview.ws.api.UIinfo;
import jalview.ws.jws2.dm.AAConSettings;
import jalview.ws.jws2.dm.JabaWsParamSet;
import jalview.ws.jws2.jabaws2.Jws2Instance;
*/
public abstract class Jws2Client extends jalview.ws.WSClient
{
- protected AlignFrame alignFrame;
-
protected WsParamSetI preset;
protected List<Argument> paramset;
// anonymous constructor - used for headless method calls only
}
- protected WebserviceInfo setWebService(UIinfo serv, boolean b)
- {
- // TODO pullup
- WebServiceName = serv.getName();
- WebServiceJobTitle = serv.getActionText();
- WsURL = serv.getHostURL();
- if (!b)
- {
- return new WebserviceInfo(WebServiceJobTitle,
- WebServiceJobTitle + " using service hosted at "
- + WsURL + "\n"
- + (serv.getDescription() != null
- ? serv.getDescription()
- : ""),
- false);
- }
- return null;
- }
-
/*
* Jws2Instance serviceHandle; (non-Javadoc)
*