mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 02:45:36 +01:00
work on offset bug fix
This commit is contained in:
@@ -1163,6 +1163,16 @@ public class ErrorCheckerService implements Runnable{
|
||||
|
||||
return new int[] { codeIndex, x };
|
||||
}
|
||||
|
||||
public int getJavaLineNumFromPDElineNum(int tab, int pdeLineNum){
|
||||
int jLineNum = programImports.size() + 1;
|
||||
for (int i = 0; i < tab; i++) {
|
||||
SketchCode sc = editor.getSketch().getCode(i);
|
||||
int len = Base.countLines(sc.getProgram()) + 1;
|
||||
jLineNum += len;
|
||||
}
|
||||
return jLineNum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches code from the editor tabs and pre-processes it into parsable pure
|
||||
|
||||
Reference in New Issue
Block a user