CVSROOT:        /cvsroot/classpath
Module name:    classpath
Branch:         
Changes by:     Anthony Balkissoon <[EMAIL PROTECTED]>  05/12/19 22:52:32

Modified files:
        .              : ChangeLog 
        javax/swing/text: DefaultStyledDocument.java 

Log message:
        2005-12-19  Anthony Balkissoon  <[EMAIL PROTECTED]>
        
        * javax/swing/text/DefaultStyledDocument.java:
        (endOffset): New field.
        (ElementBuffer.insert): If length is 0 return early.  Set the endOffset
        variable here.
        (ElementBuffer.insertContentTag): Added special case for when insertion
        covers entire range of the current Element.  Replaced (offset + length)
        with endOffset everywhere.  Added checks to see if the insertion has
        the same attributes as the surrounding Element(s), in which case we
        don't split them, we join them.
        (SectionElement.getName): Return the field SectionElementName instead
        of hardcoding a return value.
        (getLogicalStyle): As the specs require, if the attributes from the
        resolve parent aren't of type Style, return null.
        (setCharacterAttributes): Exit early if length is 0.  Obtain a
        write lock for the body of this method.  Changed the way we iterate
        through the paragraphs to be more efficient and more intuitive.  Added
        AttributeUndoableEdits to the DocumentEvent and fired the
        UndoableEditUpdate.
        (setLogicalStyle): Return early if the Element is null.  Obtain a write
        lock for the body of this method.  Fire the appropriate DocumentEvent.
        (setParagraphAttributes): Changed the way we iterated through the
        paragraphs because it was incorrect and unintuitive.  Obtained a write
        lock within a try/finally block.  Added AttributeUndoableEdits to the
        DocumentEvent and fired the event.
        (insertUpdate): Changed the way we iterate because we cannot assume
        the Segment holds the characters starting from index 0.  Give the
        startTag the same attributes as the paragraph.  Removed the useless
        offset += len line because len is 0.
        (printElements): New temporary debugging method.
        (attributeSetsAreSame): New method.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5864&tr2=1.5865&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/DefaultStyledDocument.java.diff?tr1=1.20&tr2=1.21&r1=text&r2=text


Reply via email to