(StepEvent se)
| 640 | |
| 641 | |
| 642 | private void vmStepEvent(StepEvent se) { |
| 643 | currentThread = se.thread(); |
| 644 | |
| 645 | //printSourceLocation(currentThread); |
| 646 | updateVariableInspector(currentThread); // this is already on the EDT |
| 647 | final LineID newCurrentLine = locationToLineID(se.location()); |
| 648 | javax.swing.SwingUtilities.invokeLater(new Runnable() { |
| 649 | @Override |
| 650 | public void run() { |
| 651 | editor.setCurrentLine(newCurrentLine); |
| 652 | editor.deactivateStep(); |
| 653 | editor.deactivateContinue(); |
| 654 | } |
| 655 | }); |
| 656 | |
| 657 | // delete the steprequest that triggered this step so new ones can be placed (only one per thread) |
| 658 | EventRequestManager mgr = runtime.vm().eventRequestManager(); |
| 659 | mgr.deleteEventRequest(se.request()); |
| 660 | requestedStep = null; // mark that there is no step request pending |
| 661 | paused = true; |
| 662 | editor.statusHalted(); |
| 663 | |
| 664 | // disallow stepping into invisible lines |
| 665 | if (!locationIsVisible(se.location())) { |
| 666 | // TODO: this leads to stepping, should it run on the EDT? |
| 667 | javax.swing.SwingUtilities.invokeLater(new Runnable() { |
| 668 | @Override |
| 669 | public void run() { |
| 670 | stepOutIntoViewOrContinue(); |
| 671 | } |
| 672 | }); |
| 673 | } |
| 674 | } |
| 675 | |
| 676 | |
| 677 | /** |
no test coverage detected