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