commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] classpath/javax/swing/text GapContent.java Chan...


From: Roman Kennke
Subject: [commit-cp] classpath/javax/swing/text GapContent.java Chan...
Date: Tue, 20 Jun 2006 15:36:41 +0000

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Changes by:     Roman Kennke <rabbit78> 06/06/20 15:36:41

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

Log message:
        2006-06-20  Roman Kennke  <address@hidden>
        
                * javax/swing/text/GapContent.java
                (GapContentPosition.mark): New field.
                (GapContentPosition.index): Removed.
                (GapContentPosition.GapContentPosition): Changed to take the
                real offset as parameter. Added handling of reference counter.
                Try to cleanup before creating new instances.
                (getOffset): Delegate to the Mark method with same name.
                (Mark): New class, encapsulating a mark.
                (positionMarks): Removed field.
                (numMarks): Removed field.
                (marks): New field.
                (queueOfDeath): New field.
                (GapContent): Removed init of old fields, added init of new 
fields.
                (createPosition): Added check for validity of arguments.
                Create GapContentPosition directly with offset.
                (shiftEnd): Pass end of buffer directly to 
adjustPositionsInRange.
                (shiftGap): Pass end of buffer directly to 
adjustPositionsInRange.
                (shiftGapStartDown): Call resetMarksAtZero().
                (shiftGapEndUp): Call resetMarksAtZero().
                (replace): Don't call resetMarksAtZero().
                (setPositionInRange): Replaced by simpler algorithm, similar to
                adjustPositionsInRange.
                (adjustPositionsInRange): Adapted to use of Mark objects.
                (resetMarksAtZero): Reset all marks that point to zero instead
                of only the first one.
                (dumpMarks): Adjusted to dump Mark objects.
                (insertMark): Removed.
                (garbageCollect): New method. Cleans up the marks list.
                (binarySearch): Removed.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/GapContent.java?cvsroot=classpath&r1=1.50&r2=1.51
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7882&r2=1.7883

Patches:

Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.7882
retrieving revision 1.7883
diff -u -b -r1.7882 -r1.7883
--- ChangeLog   20 Jun 2006 13:57:49 -0000      1.7882
+++ ChangeLog   20 Jun 2006 15:36:39 -0000      1.7883
@@ -1,3 +1,35 @@
+2006-06-20  Roman Kennke  <address@hidden>
+
+       * javax/swing/text/GapContent.java
+       (GapContentPosition.mark): New field.
+       (GapContentPosition.index): Removed.
+       (GapContentPosition.GapContentPosition): Changed to take the
+       real offset as parameter. Added handling of reference counter.
+       Try to cleanup before creating new instances.
+       (getOffset): Delegate to the Mark method with same name.
+       (Mark): New class, encapsulating a mark.
+       (positionMarks): Removed field.
+       (numMarks): Removed field.
+       (marks): New field.
+       (queueOfDeath): New field.
+       (GapContent): Removed init of old fields, added init of new fields.
+       (createPosition): Added check for validity of arguments.
+       Create GapContentPosition directly with offset.
+       (shiftEnd): Pass end of buffer directly to adjustPositionsInRange.
+       (shiftGap): Pass end of buffer directly to adjustPositionsInRange.
+       (shiftGapStartDown): Call resetMarksAtZero().
+       (shiftGapEndUp): Call resetMarksAtZero().
+       (replace): Don't call resetMarksAtZero().
+       (setPositionInRange): Replaced by simpler algorithm, similar to
+       adjustPositionsInRange.
+       (adjustPositionsInRange): Adapted to use of Mark objects.
+       (resetMarksAtZero): Reset all marks that point to zero instead
+       of only the first one.
+       (dumpMarks): Adjusted to dump Mark objects.
+       (insertMark): Removed.
+       (garbageCollect): New method. Cleans up the marks list.
+       (binarySearch): Removed.
+
 2006-06-20  Lillian Angel  <address@hidden>
 
        * gnu/java/awt/peer/gtk/CairoGraphics2D.java




reply via email to

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