How to analyze fine-grained source code change with AST [message #204443] |
Fri, 20 May 2005 14:04 |
Eclipse User |
|
|
|
Originally posted by: ottohelge.hotmail.com
Hi,
I want to observe and possibly respond to fine-grained source code changes
in my plug-in.
I plan to use the IJavaElementDeltas for structural changes but I'm also
interested in more details i.e. changes in the body of a method.
To solve this, my impression is that to use the AST is the way to go.
Please give me feedback if there is a better way but I want to compare the
altered/new code with the previous/old code (compare AST models of the
ICompilationUnits using the ASTMatcher) to get the changes.
Couple of questions: is the comparing of ICompilationUnits available
already?
Do I have to store a "old" copy of the source myself or can I get hold of it
somehow (how does redo know what the code was..)?
Thanks in advance,
Otto
|
|
|
Powered by
FUDForum. Page generated in 0.02390 seconds