log("calcPDEOffsetsForProbList() mco: " + mainClassOffset + " CU state: "
+ compilationUnitState);
javaSource.insertString(0, sourceCode, null);
for (int i = 0; i < pdeTabs.length; i++) {
SketchCode sc = editor.getSketch().getCode(i);
pdeTabs[i] = new PlainDocument();
if (editor.getSketch().getCurrentCode().equals(sc)) {
pdeTabs[i].insertString(0,
sc.getDocument().getText(0,
sc.getDocument()
.getLength()),
null);
} else {
pdeTabs[i].insertString(0,
sc.getProgram(),
null);
}
}
int pkgNameOffset = ("package " + className + ";\n").length();
// package name is added only during compile check