Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » [SOLVED] MultiTextEdit overlap
icon5.gif  [SOLVED] MultiTextEdit overlap [message #649211] Tue, 18 January 2011 03:40 Go to next message
Eclipse UserFriend
Hi,

I've developed a refactoring tool. Due nested AST nodes, edit changes overlap.
What would be a best practice to avoid this kind of exception while applying change to document?

I've thought about a multi-pass refactoring contribution (each would parse source code again)... but it doesn't pleased me much.

Thanks for any hint,
Chris

[Updated on: Wed, 19 January 2011 16:06] by Moderator

Re: MultiTextEdit overlap [message #649214 is a reply to message #649211] Tue, 18 January 2011 03:55 Go to previous messageGo to next message
Eclipse UserFriend
I'll check this:
http://www.eclipse.org/forums/index.php?t=msg&goto=55699 5&S=d3faf005e60d825649259abc4679c25e
icon3.gif  Re: MultiTextEdit overlap [message #649502 is a reply to message #649214] Wed, 19 January 2011 08:48 Go to previous message
Eclipse UserFriend
I solved the problem with a bottom-up vistor and modifications record enabled on the CompilationUnit instance. Then rewritten text edit is applied to the ICompilationUnit instance.

Chris

[Updated on: Wed, 19 January 2011 16:06] by Moderator

Previous Topic:Add Action to the "Source" context menu
Next Topic:[SOLVED] ICompilationUnit from AbstractHandler application context
Goto Forum:
  


Current Time: Wed Jul 23 12:06:23 EDT 2025

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

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

Back to the top