Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4238847

Visibility in Extending UndoManager

XMLWordPrintable

    • Fix Understood
    • generic
    • generic



      Name: krT82822 Date: 05/17/99


      In trying to extend the UndoManager, I came across a small
      inconsistency. The CompoundEdit class declares the Vector edits
      as protected so my subclass can access it just fine. However, the
      integer indexOfNextAdd in UndoManager is package protection. So, in
      my subclass I can get a list of edits but not the current one (easily).
      In particular, I was trying to have UndoManager implements ListModel
      and return either the Undo or RedoPresentationString depending
      on where it is in the edits list, but can't tell simply by the
      index given in getElementAt().
      (Review ID: 83166)
      ======================================================================

            peterz Peter Zhelezniakov
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: