if (positions != null) { updateUndoPositions(positions, where, length); positions = null; }
    public void redo () throws CannotUndoException    {      super.redo();      try      {        insertString(where, text);      }      catch (BadLocationException ble)      {        throw new CannotRedoException();      }    }