On Mon, 2006-01-30 at 16:28 -0500, Lillian Angel wrote: > More fixes for DefaultStyledDocument. > I think we are getting close. It should be working slightly better, but > there is still alot more to fix. (I can't wait until I reclaim my > sanity). > > I made some changes to how we are editing. We don't need the addEdit > functions, it causes more problems than good. I removed it, but there > are some problems that need to be fixed now. > > I also added some booleans to keep track of certain conditions. > > 2006-01-30 Lillian Angel <[EMAIL PROTECTED]> > > * javax/swing/text/DefaultStyledDocument.java: > Added new fields. > (insert): Initialized fields. Removed call to addEdit, > and created ElementEdit instead. > (insertUpdate): Added check for fracturing. If the > fracturing was not successful, we should push the > last element back on the stack. > (insertParagraph): Fixed call to getEditForParagraphAndIndex. > Also, changed replace calls to use Edit. > (insertFirstContentTag): Removed unneeded check and fixed call > to recreateLeaves. > (insertContent): Fixed check to use new fields. Added code in > to check if leaves overlap. > (createFracture): Fixed call to recreateLeaves. > (recreateLeaves): Fixed code and cleaned it up a bit. > (insertFracture): Set fracNotCreated field. > (addEdit): Removed, this method is not needed. >
This looks like good stuff ... nice work, Lillian! --Tony