classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: patch for DefaultStyledDocument


From: Anthony Balkissoon
Subject: [cp-patches] FYI: patch for DefaultStyledDocument
Date: Mon, 09 Jan 2006 14:14:04 -0500

Now that Lillian and I have good documentation for the ElementBuffer
class
(http://java.sun.com/products/jfc/tsc/articles/text/element_buffer/index.html)
we can finally nail this class down and get it right.

I coded some examples suggested in the document linked above and made
the following change.  The examples I coded will be turned into Mauve
tests and committed.

2006-01-09  Anthony Balkissoon  <address@hidden>

        * javax/swing/text/DefaultStyledDocument.java:
        (insertUpdate): Removed call to checkForInsertAfterNewline and instead
        inlined this method because it needs to change the value of the 
        finalStartTag and finalStartDirection variables.
        (checkForInsertAfterNewline): Removed this method.
        (handleInsertAfterNewline): Added case for making the start tag's 
        direction JoinNextDirection.

--Tony

Attachment: DefaultStyledDocumentInsertUpdateFix.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]