Callback for VM events. Will be called from another thread. (VMEventReader) @param es Incoming set of events from VM
(EventSet es)
| 529 | * @param es Incoming set of events from VM |
| 530 | */ |
| 531 | public synchronized void vmEvent(EventSet es) { |
| 532 | VirtualMachine vm = vm(); |
| 533 | if (vm != null && vm != es.virtualMachine()) { |
| 534 | // This is no longer VM we are interested in, |
| 535 | // we already cleaned up and run different VM now. |
| 536 | return; |
| 537 | } |
| 538 | for (Event e : es) { |
| 539 | log("*** VM Event: " + e); |
| 540 | if (e instanceof VMStartEvent) { |
| 541 | vmStartEvent(); |
| 542 | |
| 543 | } else if (e instanceof ClassPrepareEvent) { |
| 544 | vmClassPrepareEvent((ClassPrepareEvent) e); |
| 545 | |
| 546 | } else if (e instanceof BreakpointEvent) { |
| 547 | vmBreakPointEvent((BreakpointEvent) e); |
| 548 | |
| 549 | } else if (e instanceof StepEvent) { |
| 550 | vmStepEvent((StepEvent) e); |
| 551 | |
| 552 | } else if (e instanceof VMDisconnectEvent) { |
| 553 | stopDebug(); |
| 554 | |
| 555 | } else if (e instanceof VMDeathEvent) { |
| 556 | started = false; |
| 557 | editor.statusEmpty(); |
| 558 | } |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | private void createClassPrepareRequest(String name) { |
| 563 | ClassPrepareRequest classPrepareRequest = runtime.vm().eventRequestManager().createClassPrepareRequest(); |
nothing calls this directly
no test coverage detected