From a230eda8f43fe833511bbd06780ad0f2f526ad6b Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Wed, 29 Sep 2021 16:37:47 +0200 Subject: [PATCH] JAL-3878 Add isInteractive() method 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 e882101..9a65d01 100644 --- a/src/jalview/ws2/operations/AlignmentOperation.java +++ b/src/jalview/ws2/operations/AlignmentOperation.java @@ -113,6 +113,12 @@ public class AlignmentOperation implements Operation } @Override + public boolean isInteractive() + { + return false; + } + + @Override public MenuEntryProviderI getMenuBuilder() { return this::buildMenu; diff --git a/src/jalview/ws2/operations/Operation.java b/src/jalview/ws2/operations/Operation.java index 88f3ff5..a7b229d 100644 --- a/src/jalview/ws2/operations/Operation.java +++ b/src/jalview/ws2/operations/Operation.java @@ -18,5 +18,7 @@ public interface Operation public boolean isNucleotideOperation(); + public boolean isInteractive(); + public MenuEntryProviderI getMenuBuilder(); } -- 1.7.10.2