CVSROOT:        /cvsroot/classpath
Module name:    classpath
Branch:         
Changes by:     Anthony Balkissoon <[EMAIL PROTECTED]>  05/10/04 19:37:20

Modified files:
        .              : ChangeLog 
        javax/swing/text: AbstractDocument.java GapContent.java 
                          JTextComponent.java PlainView.java 

Log message:
        2005-10-04  Anthony Balkissoon  <[EMAIL PROTECTED]>
        
        * javax/swing/text/AbstractDocument.java:
        (insertString): If inserting a string into the Content returns an
        UndoableEdit, then add an ElementEdit to the DocumentEvent before
        firing.
        (remove): Don't fire a removeUpdate unless some content was actually
        removed.
        * javax/swing/text/GapContent.java:
        (UndoInsertString): New class to implement UndoableEdit functions.
        (insertString): Return an UndoableEdit instead of null.  Also use
        locally calculated length of String rather than calculating again.
        * javax/swing/text/JTextComponent.java:
        (setText): If the Document is an AbstractDocument this should pass
        through AbstractDocument.replace rather than calling remove and insert.
        * javax/swing/text/PlainView.java:
        (determineMaxLength): Keep track of which line was the longest as well
        as the length of it.  We'll need this to know when the longest line is
        removed and we need to redetermine the longest line.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5117&tr2=1.5118&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/text/AbstractDocument.java.diff?tr1=1.30&tr2=1.31&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/text/GapContent.java.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/text/JTextComponent.java.diff?tr1=1.39&tr2=1.40&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/text/PlainView.java.diff?tr1=1.13&tr2=1.14&r1=text&r2=text



Reply via email to