From: Mateusz Warowny Date: Wed, 29 Sep 2021 14:37:47 +0000 (+0200) Subject: JAL-3878 Add isInteractive() method to Operation interface. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a230eda8f43fe833511bbd06780ad0f2f526ad6b;p=jalview.git JAL-3878 Add isInteractive() method to Operation interface. --- 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(); }