CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Roman Kennke <[EMAIL PROTECTED]> 05/11/23 14:12:41
Modified files: javax/swing/text: AbstractDocument.java DefaultStyledDocument.java . : ChangeLog Log message: 2005-11-23 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/text/DefaultStyledDocument.java (ElementBuffer.numEndTags): New field. (ElementBuffer.numStartTags): New field. (ElementBuffer.elementStack): New field. (ElementBuffer.ElementBuffer): Initialize element stack here. (ElementBuffer.changeUpdate): Correctly perform splitting of elements. (ElementBuffer.split): Change to make recursive splits possible. (ElementBuffer.insert): Clear and initialize elementStack and num* fields. (ElementBuffer.inserUpdate): Inlined the functionality for start and end tags. Call endEdit on finish. (ElementBuffer.endEdit): New method. Finishes off an edit run. (ElementBuffer.prepareContentInsertion): New method. Prepares the insertion of content. (ElementBuffer.insertParagraph): New method. Inserts a new paragraph at a given offset. (ElementBuffer.insertContentTag): Call prepareContentInsertion first. Fixed behaviour for all the different possible directions. (ElementBuffer.addEdit): New method. Adds an element edit to the document event and possible merges with previous edits. (insert): Only fire event when something has really changed. * javax/swing/text/AbstractDocument.java (insertString): Only fire event when something has really changed. (DefaultDocumentEvent.modified): New field. (DefaultDocumentEvent.DefaultDocumentEvent): Inititialize modified field. (DefaultDocumentEvent.addEdit): Set modified flag to true. CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/text/AbstractDocument.java.diff?tr1=1.39&tr2=1.40&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/text/DefaultStyledDocument.java.diff?tr1=1.17&tr2=1.18&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5707&tr2=1.5708&r1=text&r2=text