()
| 704 | } |
| 705 | |
| 706 | void evaluateLine() { |
| 707 | int start = ta.getSelectionStart(); |
| 708 | int end = ta.getSelectionEnd(); |
| 709 | if (end>start) |
| 710 | {runMacro(false); return;} |
| 711 | String text = ta.getText(); |
| 712 | while (start>0) { |
| 713 | start--; |
| 714 | if (text.charAt(start)=='\n') |
| 715 | {start++; break;} |
| 716 | } |
| 717 | while (end<text.length()-1) { |
| 718 | end++; |
| 719 | if (text.charAt(end)=='\n') |
| 720 | break; |
| 721 | } |
| 722 | ta.setSelectionStart(start); |
| 723 | ta.setSelectionEnd(end); |
| 724 | runMacro(false); |
| 725 | } |
| 726 | |
| 727 | void print () { |
| 728 | PrintJob pjob = Toolkit.getDefaultToolkit().getPrintJob(this, "Cool Stuff", p); |
no test coverage detected