mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 10:55:38 +01:00
precisise highlighting working only for specific compiler errors, needs more work
This commit is contained in:
@@ -751,7 +751,7 @@ public class ErrorCheckerService implements Runnable{
|
||||
// Code in pde tabs stored as PlainDocument
|
||||
PlainDocument pdeTabs[] = new PlainDocument[editor.getSketch()
|
||||
.getCodeCount()];
|
||||
|
||||
log("calcPDEOffsetsForProbList() mco: " + mainClassOffset);
|
||||
try {
|
||||
javaSource.insertString(0, sourceCode, null);
|
||||
for (int i = 0; i < pdeTabs.length; i++) {
|
||||
@@ -803,7 +803,7 @@ public class ErrorCheckerService implements Runnable{
|
||||
.getIProblem().getSourceStart()));
|
||||
// astGenerator.highlightPDECode(p.getTabIndex(), p.getLineNumber(),
|
||||
// pdeOffset, (prbEnd - prbStart + 1));
|
||||
p.setPDEOffsets(pdeOffset, prbEnd - prbStart);
|
||||
p.setPDEOffsets(pdeOffset, pdeOffset + prbEnd - prbStart);
|
||||
}
|
||||
} catch (BadLocationException e) {
|
||||
// TODO Auto-generated catch block
|
||||
|
||||
Reference in New Issue
Block a user