super(txt);
listener = l; // should ideally throw an exception if listener != null
// Fire the ActionEvent as usual super.fireActionPerformed(ev); if (listener != null) { listener.undoableEditHappened(new UndoableEditEvent(this, new UndoableToggleEdit(this))); }
listener = null;