From b3662457488285cefae7e21153afb9fc289ad43b Mon Sep 17 00:00:00 2001 From: Kris De Volder Date: Wed, 2 Dec 2020 13:55:41 -0800 Subject: [PATCH] Fix issue https://www.pivotaltracker.com/story/show/175404707 Signed-off-by: Kris De Volder --- .../model/remote/GenericRemoteAppElement.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/model/remote/GenericRemoteAppElement.java b/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/model/remote/GenericRemoteAppElement.java index d13c6e416..8349448fd 100644 --- a/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/model/remote/GenericRemoteAppElement.java +++ b/eclipse-extensions/org.springframework.ide.eclipse.boot.dash/src/org/springframework/ide/eclipse/boot/dash/model/remote/GenericRemoteAppElement.java @@ -895,7 +895,20 @@ public class GenericRemoteAppElement extends WrappingBootDashElement imp @Override public boolean matchesLiveProcessCommand(ExecuteCommandAction action) { App data = getAppData(); - return data.getName() != null&& data.getName().equals(action.getProcessId()); + boolean selfMatch = data.getName() != null&& data.getName().equals(action.getProcessId()); + return selfMatch || childMatch(action); + } + + private boolean childMatch(ExecuteCommandAction action) { + for (BootDashElement child : this.getChildren().getValues()) { + if ( + child instanceof LiveDataCapableElement && + ((LiveDataCapableElement) child).matchesLiveProcessCommand(action) + ) { + return true; + } + } + return false; } }