On Tuesday 25 April 2006 18:27, Werner Schuster (murphee) wrote: > I'm wondering: why don't you just generate TextEdits for the original > TextBuffer (file, or whatever) > instead of generating the code from the AST? > > Ie. calculate a bunch of replace operations (use the Eclipse TextEdit > APIs so you don't have to update offsets) > and then apply them. This should cover a lot of refactoring operations > (which are mostly just about replacing and > inserting).
Well yes, we thought about that, but our tutor suggested to generate the code from the AST. We are still in an early phase and haven't determined yet what the better way is. And I can't really estimate how much time it would take to write the code from the AST, but we should at least consider it.
pgpu8KTq5qU05.pgp
Description: PGP signature
