}
private synchronized void dispatchEvent(VirtualMachine vm, Event e) {
Iterator<JVMListener> listeners = this.session.getJVMHandler().getListeners();
while (listeners.hasNext()) {
JVMListener listener = listeners.next();
if (e instanceof VMStartEvent) {
listener.VMStartEvent();
}
else if (e instanceof BreakpointEvent) {
listener.breakpointEvent((BreakpointEvent)e);
} else if (e instanceof ClassPrepareEvent) {
listener.classPrepareEvent((ClassPrepareEvent)e);
} else if (e instanceof StepEvent) {
listener.stepEvent((StepEvent)e);
} else if (e instanceof VMDeathEvent) {
// The virtual machine has terminated.
listener.VMDeathEvent();
this.vmConnected = false;
}
}
/*if (e instanceof StepEvent) {