From b80fc5d8ba9bb95a651df44f5db0384262ffc5b4 Mon Sep 17 00:00:00 2001 From: Kris De Volder Date: Thu, 23 Jun 2022 13:39:11 -0700 Subject: [PATCH] Fix https://github.com/spring-projects/sts4/issues/783 "Resume (Debugging)" action should only be visible on 'Pausable' nodes. --- .../ide/eclipse/boot/dash/views/BootDashActions.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/views/BootDashActions.java b/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/views/BootDashActions.java index 05f06a036..c13025a56 100644 --- a/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/views/BootDashActions.java +++ b/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/views/BootDashActions.java @@ -256,6 +256,12 @@ public class BootDashActions { return s == RunState.PAUSED; } + @Override + protected boolean isVisibleForElement(BootDashElement e) { + // Only show Resume action for elements that can be paused explicitly + return e.supportedGoalStates().contains(RunState.PAUSED) && super.isVisibleForElement(e); + } + @Override public boolean showInToolbar() { return false;