mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Working JavaError again without full highlight.
This commit is contained in:
@@ -199,7 +199,7 @@ public class ErrorChecker {
|
||||
String badCode = ps.getPdeCode(in);
|
||||
int line = ps.tabOffsetToTabLine(in.tabIndex, in.startTabOffset);
|
||||
JavaProblem p = JavaProblem.fromIProblem(iproblem, in.tabIndex, line, badCode);
|
||||
p.setPDEOffsets(in.startTabOffset, in.stopTabOffset);
|
||||
p.setPDEOffsets(0, 1); // TODO
|
||||
return p;
|
||||
}
|
||||
return null;
|
||||
@@ -252,7 +252,6 @@ public class ErrorChecker {
|
||||
|
||||
String message = Language.interpolate("editor.status.bad_curly_quote", q);
|
||||
JavaProblem problem = new JavaProblem(message, JavaProblem.ERROR, tabIndex, tabLine);
|
||||
problem.setPDEOffsets(tabOffset, tabOffset+1);
|
||||
|
||||
problems.add(problem);
|
||||
}
|
||||
@@ -294,7 +293,6 @@ public class ErrorChecker {
|
||||
message = Language.interpolate("editor.status.bad_curly_quote", q);
|
||||
}
|
||||
JavaProblem p = new JavaProblem(message, JavaProblem.ERROR, in.tabIndex, line);
|
||||
p.setPDEOffsets(tabStart, tabStop);
|
||||
problems2.add(p);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +60,10 @@ public class JavaProblem implements Problem {
|
||||
this.type = type;
|
||||
this.tabIndex = tabIndex;
|
||||
this.lineNumber = lineNumber;
|
||||
|
||||
// Default to 0, 1 unless a longer section is specified
|
||||
this.startOffset = 0;
|
||||
this.stopOffset = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user