Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » TextEdit design decision(Restriction of overlapping children in an edit tree)
TextEdit design decision [message #1773407] Wed, 27 September 2017 14:14
Gonzalo Ibars is currently offline Gonzalo IbarsFriend
Messages: 2
Registered: September 2017
Junior Member
I analyzed thoroughly the TextEdit class and its documentation provides as follows:

Quote:

An edit tree is well formed in the following sense:

  • a parent edit covers all its children
  • children don't overlap
  • an edit with length 0 can't have any children



I couldn't find the design reason for not allowing overlapping children. The code only throws a MalformedTreeException if a child is tried to be inserted and overlaps with their potential siblings.

Any help of why it was decided like this is very much appreciated.
Previous Topic:Eclipse Neon installation on Windows 7
Next Topic:Using Java 9 Included Modules in Projects
Goto Forum:
  


Current Time: Tue Apr 16 05:04:15 GMT 2024

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

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

Back to the top