|
21 | 21 | import processing.app.*; |
22 | 22 | import processing.app.contrib.*; |
23 | 23 | import processing.app.syntax.JEditTextArea; |
| 24 | +import processing.app.syntax.PdeTextArea; |
24 | 25 | import processing.app.syntax.PdeTextAreaDefaults; |
25 | 26 | import processing.app.ui.*; |
26 | 27 | import processing.app.ui.Toolkit; |
@@ -2078,7 +2079,7 @@ public void setCurrentLine(LineID line) { |
2078 | 2079 | cursorToLineStart(line.lineIdx()); |
2079 | 2080 | // highlight line |
2080 | 2081 | currentLine = new LineHighlight(line.lineIdx(), this); |
2081 | | - currentLine.setMarker(JavaTextArea.STEP_MARKER); |
| 2082 | + currentLine.setMarker(PdeTextArea.STEP_MARKER); |
2082 | 2083 | currentLine.setPriority(10); // fixes current line being hidden by the breakpoint when moved down |
2083 | 2084 | } |
2084 | 2085 |
|
@@ -2107,7 +2108,7 @@ public void clearCurrentLine() { |
2107 | 2108 | */ |
2108 | 2109 | public void addBreakpointedLine(LineID lineID) { |
2109 | 2110 | LineHighlight hl = new LineHighlight(lineID, this); |
2110 | | - hl.setMarker(JavaTextArea.BREAK_MARKER); |
| 2111 | + hl.setMarker(PdeTextArea.BREAK_MARKER); |
2111 | 2112 | breakpointedLines.add(hl); |
2112 | 2113 | // repaint current line if it's on this line |
2113 | 2114 | if (currentLine != null && currentLine.getLineID().equals(lineID)) { |
@@ -2350,7 +2351,7 @@ private void showImportSuggestion(String[] list, int x, int y) { |
2350 | 2351 | frmImportSuggest = new JFrame(); |
2351 | 2352 |
|
2352 | 2353 | frmImportSuggest.setUndecorated(true); |
2353 | | - frmImportSuggest.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); |
| 2354 | + frmImportSuggest.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); |
2354 | 2355 | JPanel panel = new JPanel(); |
2355 | 2356 | panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); |
2356 | 2357 | panel.setBackground(Color.WHITE); |
|
0 commit comments