JAL-3878 Add RNAalifold service discovery.
[jalview.git] / src / jalview / ws2 / operations / AnnotationOperation.java
index 6518733..f927b2b 100644 (file)
@@ -48,6 +48,10 @@ public class AnnotationOperation implements Operation
 
   boolean interactive = false;
 
+  private boolean isProtOperation = true;
+
+  private boolean isNucOperation = true;
+
   /*
    * Is it fine to get rid of AlignAnalysisUIText?
    */
@@ -67,7 +71,7 @@ public class AnnotationOperation implements Operation
   {
     return service.getName();
   }
-  
+
   @Override
   public String getDescription()
   {
@@ -85,13 +89,13 @@ public class AnnotationOperation implements Operation
   {
     return service.getHostName();
   }
-  
+
   @Override
   public boolean hasParameters()
   {
     return service.hasParameters();
   }
-  
+
   @Override
   public ParamDatastoreI getParamStore()
   {
@@ -119,13 +123,23 @@ public class AnnotationOperation implements Operation
   @Override
   public boolean isProteinOperation()
   {
-    return true;
+    return isProtOperation;
+  }
+
+  public void setProteinOperation(boolean value)
+  {
+    isProtOperation = value;
   }
 
   @Override
   public boolean isNucleotideOperation()
   {
-    return true;
+    return isNucOperation;
+  }
+
+  public void setNucleotideOperation(boolean value)
+  {
+    isNucOperation = value;
   }
 
   @Override