The fight continues for pde specific offset mapping.

This commit is contained in:
Manindra Moharana
2013-06-21 00:45:57 +05:30
parent 7cac0a0d0d
commit f418e7750d
3 changed files with 56 additions and 28 deletions

View File

@@ -1126,7 +1126,7 @@ public class ASTGenerator {
// 3 friggin casts. Javaaargh.
ASTNodeWrapper awrap = (ASTNodeWrapper) tnode.getUserObject();
int pdeoffsets[] = awrap.getPDECodeOffsets(errorCheckerService);
int javaoffsets[] = awrap.getJavaCodeOffsets();
int javaoffsets[] = awrap.getJavaCodeOffsets(errorCheckerService);
ErrorCheckerService.scrollToErrorLine(editor, pdeoffsets[0],
pdeoffsets[1],
javaoffsets[2]