Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to analyze fine-grained source code change with AST
How to analyze fine-grained source code change with AST [message #204443] Fri, 20 May 2005 18:04
Eclipse UserFriend
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
Previous Topic:Mac OS X Tiger Slow Scrolling
Next Topic:M7 - Autocompletion change?
Goto Forum:
  


Current Time: Sat Aug 17 04:26:07 GMT 2024

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

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

Back to the top