JAL-3807 JPred can now successfully submit and track the job.
[jalview.git] / src / jalview / ws / api / ServiceWithParameters.java
index 645ef34..d875fd7 100644 (file)
@@ -2,6 +2,7 @@ package jalview.ws.api;
 
 import jalview.bin.Cache;
 import jalview.gui.AlignFrame;
+import jalview.ws.JPredClient;
 import jalview.ws.jws2.MsaWSClient;
 import jalview.ws.jws2.SequenceAnnotationWSClient;
 import jalview.ws.params.ParamManager;
@@ -9,6 +10,7 @@ import jalview.ws.params.ParamManager;
 import javax.swing.JMenu;
 
 public abstract class ServiceWithParameters extends UIinfo
+    implements JalviewServiceEndpointProviderI
 {
 
   protected jalview.ws.uimodel.AlignAnalysisUIText aaui;
@@ -87,7 +89,7 @@ public abstract class ServiceWithParameters extends UIinfo
 
   protected enum ServiceClient
   {
-    MSAWSCLIENT, SEQUENCEANNOTATIONWSCLIENT;
+    MSAWSCLIENT, SEQUENCEANNOTATIONWSCLIENT, JPREDWSCLIENT;
   };
 
   protected ServiceClient style = null;
@@ -99,6 +101,9 @@ public abstract class ServiceWithParameters extends UIinfo
     case MSAWSCLIENT:
         new MsaWSClient().attachWSMenuEntry(atpoint, this, alignFrame);
       break;
+    case JPREDWSCLIENT:
+        JPredClient.getMenuEntryProvider(this).attachWSMenuEntry(atpoint, alignFrame);
+        break;
     case SEQUENCEANNOTATIONWSCLIENT:
         new SequenceAnnotationWSClient().attachWSMenuEntry(atpoint, this,
                 alignFrame);