From bac1a4bd9860d624741698e43fcc322c689c3077 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Wed, 29 Sep 2021 15:45:55 +0200 Subject: [PATCH] JAL-3878 Add getName() to Operation interface. --- src/jalview/ws2/operations/AlignmentOperation.java | 6 ++++++ src/jalview/ws2/operations/Operation.java | 2 ++ 2 files changed, 8 insertions(+) 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(); -- 1.7.10.2