From: Mateusz Warowny Date: Wed, 29 Sep 2021 13:45:55 +0000 (+0200) Subject: JAL-3878 Add getName() to Operation interface. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bac1a4bd9860d624741698e43fcc322c689c3077;p=jalview.git JAL-3878 Add getName() to Operation interface. --- diff --git a/src/jalview/ws2/operations/AlignmentOperation.java b/src/jalview/ws2/operations/AlignmentOperation.java index d71e839..e882101 100644 --- a/src/jalview/ws2/operations/AlignmentOperation.java +++ b/src/jalview/ws2/operations/AlignmentOperation.java @@ -70,6 +70,12 @@ public class AlignmentOperation implements Operation } @Override + public String getName() + { + return service.getName(); + } + + @Override public String getTypeName() { return "Multiple Sequence Alignment"; diff --git a/src/jalview/ws2/operations/Operation.java b/src/jalview/ws2/operations/Operation.java index ae6412b..88f3ff5 100644 --- a/src/jalview/ws2/operations/Operation.java +++ b/src/jalview/ws2/operations/Operation.java @@ -4,6 +4,8 @@ import jalview.ws2.MenuEntryProviderI; public interface Operation { + public String getName(); + public String getTypeName(); public int getMinSequences();