classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: AbstractDocument and GapContent patch


From: Anthony Balkissoon
Subject: [cp-patches] FYI: AbstractDocument and GapContent patch
Date: Wed, 05 Oct 2005 11:21:22 -0400

This patch makes AbstractDocument return an ElementChange in the
DocumentEvent that it fires after a remove operation.  Adds undoable
edit support to GapContent's remove operation.

2005-10-05  Anthony Balkissoon  <address@hidden>

        * javax/swing/text/AbstractDocument.java:
        (remove): If removing content returns an UndoableEdit, then add an 
        ElementEdit to the DocumentEvent before firing.
        * javax/swing/text/GapContent.java:
        (UndoRemove): New class to implement UndoableEdit for remove operation.
        (remove): Return an UndoableEdit instead of null.

--Tony

Attachment: AbstractDocumentRemoveElementChange.diff
Description: Text Data


reply via email to

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