JAL-3070 make AlignCalcUI service code work only with instances of ServiceWithParameters
authorJim Procter <jprocter@issues.jalview.org>
Wed, 2 Oct 2019 16:29:26 +0000 (17:29 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 2 Oct 2019 16:34:32 +0000 (17:34 +0100)
src/jalview/ws/jws2/Jws2Discoverer.java

index 7e1bd81..d270c85 100644 (file)
@@ -960,7 +960,7 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI
 
     if (ourServices != null)
     {
-      for (ServiceWithParameters svc : services)
+      for (ServiceWithParameters svc : ourServices)
       {
         // TODO getNameURI Should return a versioned URI for the service, but
         // doesn't as of 2.11
@@ -1016,8 +1016,8 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI
       }
 
     }
-    Jws2Instance response = null;
-    for (Jws2Instance svc : services)
+    ServiceWithParameters response = null;
+    for (ServiceWithParameters svc : getServices())
     {
       if (svc.getName().equals(serviceName))
       {