CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Anthony Balkissoon <[EMAIL PROTECTED]> 06/01/05 20:15:34
Modified files: . : ChangeLog javax/swing : JTextPane.java javax/swing/event: EventListenerList.java javax/swing/text: AbstractDocument.java DefaultCaret.java DefaultStyledDocument.java View.java Log message: 2006-01-05 Anthony Balkissoon <[EMAIL PROTECTED]> * javax/swing/JTextPane.java: (replaceSelection): If the document is an AbstractDocument, use replace rather than remove and insert. * javax/swing/event/EventListenerList.java: (getListeners): Reversed the order of the listeners to match the reference implementation. * javax/swing/text/AbstractDocument.java: (insertString): Add the UndoableEdit from the content.insertString call to the DocumentEvent. (DefaultDocumentEvent.toString): Implemented. * javax/swing/text/DefaultCaret.java: (setDot): Make sure dot is > 0 and less than the length of the document. * javax/swing/text/DefaultStyledDocument.java: (ElementBuffer.insertUpdate): Set the modified tag of the document event when we get start and end tags. This ensures that we create the proper BranchElements in endEdit(). (ElementBuffer.insertUpdate): Added FIXME to handle JoinFractureDirection case. (insertUpdate): Added code to check if we're inserting immediately after a newline and to handle this case (create start and end tags). Only change the direction of the first and last tags if they are of type ContentType. (checkForInsertAfterNewline): New helper method. (handleInsertAfterNewline): Likewise. * javax/swing/text/View.java: (updateLayout): Avoid NPE by checking if shape is null. Repaint container. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5949&tr2=1.5950&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/JTextPane.java.diff?tr1=1.13&tr2=1.14&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/event/EventListenerList.java.diff?tr1=1.13&tr2=1.14&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/AbstractDocument.java.diff?tr1=1.42&tr2=1.43&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/DefaultCaret.java.diff?tr1=1.26&tr2=1.27&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/DefaultStyledDocument.java.diff?tr1=1.25&tr2=1.26&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/View.java.diff?tr1=1.24&tr2=1.25&r1=text&r2=text