public class PHPDebugTarget extends PHPDebugElement implements IPHPDebugTarget, ILaunchListener,
IDebugEventSetListener {
- private IProcess process;
-
- private ILaunch launch;
-
- private PHPThread[] threads = new PHPThread[0];
-
- private PHPDBGProxy phpDBGProxy;
+ private IProcess process;
+ private ILaunch launch;
+ private PHPThread[] threads = new PHPThread[0];
+ private PHPDBGProxy phpDBGProxy;
private class State {
private boolean isTerminated = false;
-
- private boolean isSuspended = false;
+ private boolean isSuspended = false;
boolean isTerminated() {
return isTerminated;
fireChangeEvent();
fireThreadCreateEvent(phpThread);
}
-
-// public void updateThreads(PHPThread phpThread) {
-// fireChangeEvent();
-// fireThreadCreateEvent(phpThread);
-// }
+
+ public void updateThreads (PHPThread phpThread) {
+ fireChangeEvent ();
+ fireThreadCreateEvent (phpThread);
+ }
private void fireChangeEvent() {
DebugEvent ev = new DebugEvent(this, DebugEvent.CHANGE);
public synchronized boolean isTerminated() {
return state.isTerminated();
}
-
+
private synchronized void terminateThreads () {
int i;
-
+
try {
for (i = 0; i < threads.length; i++) {
threads[i].terminate ();