Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » [SOLVED] MultiTextEdit overlap
icon5.gif  [SOLVED] MultiTextEdit overlap [message #649211] Tue, 18 January 2011 08:40 Go to next message
Christophe Bismuth is currently offline Christophe BismuthFriend
Messages: 67
Registered: July 2009
Location: Paris, France
Member

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 21:06]

Report message to a moderator

Re: MultiTextEdit overlap [message #649214 is a reply to message #649211] Tue, 18 January 2011 08:55 Go to previous messageGo to next message
Christophe Bismuth is currently offline Christophe BismuthFriend
Messages: 67
Registered: July 2009
Location: Paris, France
Member

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 13:48 Go to previous message
Christophe Bismuth is currently offline Christophe BismuthFriend
Messages: 67
Registered: July 2009
Location: Paris, France
Member

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 21:06]

Report message to a moderator

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


Current Time: Fri Apr 19 23:25:41 GMT 2024

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

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

Back to the top