|updating source locations in modified CompilationUnit [message #593641]
||Wed, 10 May 2006 18:23
| Andrew Eisenberg
Registered: July 2009
This isn't really an AJDT question, but I'm trying to solve a problem that I
think you guys have already solved. So, perhaps someone here could have some
advice for me.
I am modifying a CompilationUnit that I created from an IDocument (ie-
transforming an AST). After modification, I would like to update the source
locations on the CompilationUnit without creating a new AST.
There are particular methods to do this in the ASTNode class:
but source locations are only set when the AST is created, and they are not
updated when the AST is modified.
Yet somehow, AJDT is able to map errors, warnings, debug locations, etc to the
correct line of code even when the class file contains generated code and the
original file contains aspect code.
How does AJDT do this? Is there some code that you could point me to? In
particular is there a specific Eclipse API for this, or is it a custom thing?
Powered by FUDForum
. Page generated in 0.01842 seconds