Mirko Stocker wrote:

That's what I expected, too. For our project we have to rely on correct positions (or have to create a workaround for the wrong ones), because we'd like to reconstruct the sourcefile from the AST.
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).

murphee
--
Blog @ http://jroller.com/page/murphee
Maintainer of EclipseShell @ http://eclipse-shell.sourceforge.net/


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jruby-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to