mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
Threading: touch UI only on AWT
This commit is contained in:
@@ -22,6 +22,7 @@ package processing.mode.java;
|
||||
|
||||
import com.sun.jdi.*;
|
||||
import com.sun.jdi.event.*;
|
||||
import com.sun.jdi.event.Event;
|
||||
import com.sun.jdi.request.*;
|
||||
|
||||
import java.io.*;
|
||||
@@ -661,7 +662,12 @@ public class Debugger implements VMEventListener {
|
||||
// disallow stepping into invisible lines
|
||||
if (!locationIsVisible(se.location())) {
|
||||
// TODO: this leads to stepping, should it run on the EDT?
|
||||
stepOutIntoViewOrContinue();
|
||||
javax.swing.SwingUtilities.invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
stepOutIntoViewOrContinue();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user