import jalview.viewmodel.seqfeatures.FeatureRendererModel;
import jalview.viewmodel.seqfeatures.FeatureRendererSettings;
import jalview.viewmodel.seqfeatures.FeaturesDisplayed;
+import jalview.ws.api.ServiceWithParameters;
import jalview.ws.jws2.Jws2Discoverer;
import jalview.ws.jws2.dm.AAConSettings;
-import jalview.ws.jws2.jabaws2.Jws2Instance;
import jalview.ws.params.ArgumentI;
import jalview.ws.params.AutoCalcSetting;
import jalview.ws.params.WsParamSetI;
if (calcIdParam.getVersion().equals("1.0"))
{
final String[] calcIds = calcIdParam.getServiceURL().toArray(new String[0]);
- Jws2Instance service = Jws2Discoverer.getDiscoverer()
+ ServiceWithParameters service = Jws2Discoverer.getDiscoverer()
.getPreferredServiceFor(calcIds);
if (service != null)
{
}
else
{
- warn("Cannot resolve a service for the parameters used in this project. Try configuring a JABAWS server.");
+ warn("Cannot resolve a service for the parameters used in this project. Try configuring a server in the Web Services preferences tab.");
return false;
}
}
* @param serviceURL
* @return null or best match for given uri/ls.
*/
- public Jws2Instance getPreferredServiceFor(String[] serviceURLs)
+ public ServiceWithParameters getPreferredServiceFor(String[] serviceURLs)
{
HashSet<String> urls = new HashSet<>();
urls.addAll(Arrays.asList(serviceURLs));
- Jws2Instance match = null;
+ ServiceWithParameters match = null;
if (services != null)
{
- for (Jws2Instance svc : services)
+ for (ServiceWithParameters svc : services)
{
// TODO getNameURI Should return a versioned URI for the service, but
// doesn't as of 2.11