From 158e0595615ae4bfb13554f41f03b570642f6bb2 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Wed, 10 Nov 2021 12:14:22 +0100 Subject: [PATCH] JAL-3878 Remove redundand edit params dialog method from the AnnotationOperation. --- .../ws2/operations/AnnotationOperation.java | 32 -------------------- 1 file changed, 32 deletions(-) diff --git a/src/jalview/ws2/operations/AnnotationOperation.java b/src/jalview/ws2/operations/AnnotationOperation.java index c1d2c7e..6518733 100644 --- a/src/jalview/ws2/operations/AnnotationOperation.java +++ b/src/jalview/ws2/operations/AnnotationOperation.java @@ -168,36 +168,4 @@ public class AnnotationOperation implements Operation return new AnnotationMenuBuilder(this); } - - private CompletionStage> openEditParamsDialog( - WebServiceI service, WsParamSetI preset, List arguments) - { - WsJobParameters jobParams; - if (preset == null && arguments != null && arguments.size() > 0) - jobParams = new WsJobParameters(service.getParamStore(), preset, - arguments); - else - jobParams = new WsJobParameters(service.getParamStore(), preset, - null); - if (preset != null) - { - jobParams.setName(MessageManager.getString( - "label.adjusting_parameters_for_calculation")); - } - var stage = jobParams.showRunDialog(); - return stage.thenApply((startJob) -> { - if (startJob) - { - if (jobParams.getPreset() == null) - return jobParams.getJobParams(); - else - return jobParams.getPreset().getArguments(); - } - else - { - return null; - } - }); - } - } -- 1.7.10.2