Set the line to highlight as currently suspended at. Will override the breakpoint color, if set. Switches to the appropriate tab and scroll to the line by placing the cursor there. @param line the line to highlight as current suspended line
(LineID line)
| 1458 | * @param line the line to highlight as current suspended line |
| 1459 | */ |
| 1460 | public void setCurrentLine(LineID line) { |
| 1461 | clearCurrentLine(); |
| 1462 | if (line == null) { |
| 1463 | // safety, e.g. when no line mapping is found and the null line is used. |
| 1464 | return; |
| 1465 | } |
| 1466 | switchToTab(line.fileName()); |
| 1467 | // scroll to line, by setting the cursor |
| 1468 | cursorToLineStart(line.lineIdx()); |
| 1469 | // highlight line |
| 1470 | currentLine = new LineHighlight(line.lineIdx(), this); |
| 1471 | currentLine.setMarker(PdeTextArea.STEP_MARKER); |
| 1472 | currentLine.setPriority(10); // fixes current line being hidden by the breakpoint when moved down |
| 1473 | } |
| 1474 | |
| 1475 | |
| 1476 | /** Clear the highlight for the debuggers current line. */ |
no test coverage detected