Skip to content

Commit 54a87fc

Browse files
committed
Remove Debug listener & Add Debug Launch check on HCR pop close
Added launch check prior pop-up close and Remove debug event listener when HCR failure dialog is closed after thread termination
1 parent fb3189a commit 54a87fc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/HotCodeReplaceErrorDialog.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,11 @@ public void run() {
160160
public void handleDebugEvents(DebugEvent[] events) {
161161
for (DebugEvent event : events) {
162162
if (event.getSource() instanceof JDIThread de) {
163-
if (de.isTerminated()) {
164-
Display.getDefault().asyncExec(() -> this.close());
163+
if (de.isTerminated() && de.getLaunch().equals(this.target.getLaunch())) {
164+
Display.getDefault().asyncExec(() -> {
165+
this.close();
166+
DebugPlugin.getDefault().removeDebugEventListener(this);
167+
});
165168
}
166169
}
167170
}

0 commit comments

Comments
 (0)