GeezerVison is showing github.com — Hold on fix for #752. · D-I-R-M/processing4@d366df9
File tree
Expand file treeCollapse file tree
Open diff view settings
app/src/processing/app/syntax java/src/processing/mode/java
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: app/src/processing/app/syntax/PdeTextAreaPainter.java +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -326,7 +326,7 @@ static private void paintSquiggle(Graphics g, int y, int x1, int x2) { |
326 | 326 | public String getToolTipText(MouseEvent event) { |
327 | 327 | fontMetrics = getFontMetrics(); |
328 | 328 | int line = event.getY() / fontMetrics.getHeight() + textArea.getFirstLine(); |
329 | | - if (line >= 0 || line < textArea.getLineCount()) { |
| 329 | + if (line >= 0 || line < textArea.getLineCount()) {getPreprocessIssues |
330 | 330 | List<Problem> problems = getEditor().findProblems(line); |
331 | 331 | for (Problem problem : problems) { |
332 | 332 | int lineStart = textArea.getLineStartOffset(line); |
@@ -338,6 +338,8 @@ public String getToolTipText(MouseEvent event) { |
338 | 338 | int startOffset = Math.max(errorStart, lineStart) - lineStart; |
339 | 339 | int stopOffset = Math.min(errorEnd, lineEnd) - lineStart; |
340 | 340 |
|
| 341 | + System.out.println(lineStart + "\t" + lineEnd + "\t" + errorStart + "\t" + errorEnd + "\t" + startOffset + "\t" + stopOffset); |
| 342 | + |
341 | 343 | int x = event.getX(); |
342 | 344 |
|
343 | 345 | if (x >= textArea.offsetToX(line, startOffset) && |
|
Collapse file
Copy file name to clipboardExpand all lines: java/src/processing/mode/java/ProblemFactory.java +3-5Lines changed: 3 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -52,9 +52,8 @@ public static Problem build(PdePreprocessIssue pdePreprocessIssue, List<Integer> |
52 | 52 | tab, |
53 | 53 | localLine, |
54 | 54 | message, |
55 | | - lineStart, |
56 | | - lineStop, |
57 | | - false |
| 55 | + 0, |
| 56 | + lineStop - lineStart |
58 | 57 | ); |
59 | 58 | } |
60 | 59 |
|
@@ -85,8 +84,7 @@ public static Problem build(PdePreprocessIssue pdePreprocessIssue, List<Integer> |
85 | 84 | localLine, |
86 | 85 | message, |
87 | 86 | 0, |
88 | | - col, |
89 | | - true |
| 87 | + col |
90 | 88 | ); |
91 | 89 | } |
92 | 90 |
|
|