Skip to main content



      Home
Home » Eclipse Projects » JFace » TextEdit code design decision(Restriction of overlapping children in an edit tree)
TextEdit code design decision [message #1773658] Mon, 02 October 2017 09:31
Eclipse UserFriend
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:Trigger multivalidator in AggregateValidationStatus changelistener
Next Topic:Virtual TreeViewer setSelection problem
Goto Forum:
  


Current Time: Thu Jul 03 20:27:47 EDT 2025

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

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

Back to the top