JAL-3878 Add getName() to Operation interface.
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Wed, 29 Sep 2021 13:45:55 +0000 (15:45 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Wed, 29 Sep 2021 13:45:55 +0000 (15:45 +0200)
src/jalview/ws2/operations/AlignmentOperation.java
src/jalview/ws2/operations/Operation.java

index d71e839..e882101 100644 (file)
@@ -70,6 +70,12 @@ public class AlignmentOperation implements Operation
   }
 
   @Override
+  public String getName()
+  {
+    return service.getName();
+  }
+
+  @Override
   public String getTypeName()
   {
     return "Multiple Sequence Alignment";
index ae6412b..88f3ff5 100644 (file)
@@ -4,6 +4,8 @@ import jalview.ws2.MenuEntryProviderI;
 
 public interface Operation
 {
+  public String getName();
+
   public String getTypeName();
 
   public int getMinSequences();