Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » updating source locations in modified CompilationUnit
updating source locations in modified CompilationUnit [message #593641] Wed, 10 May 2006 18:23
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 77
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?

Previous Topic:updating source locations in modified CompilationUnit
Next Topic:A question about using AJDT in plugin projects
Goto Forum:

Current Time: Wed Jun 20 21:24:02 GMT 2018

Powered by FUDForum. Page generated in 0.01825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top