/*
(non-Javadoc)
@see
javax.swing.event.UndoableEditListener#undoableEditHappened(javax.swing
.event.UndoableEditEvent)
503848
@Override
    public void undoableEditHappened(UndoableEditEvent arg0) {
        UndoableEdit edit = arg0.getEdit();
        undoManager.addEdit(edit);
    }
16647
public void unregister(EventDefinition eventDefinition, IEventListener eventListener) {
        if (eventDefinition.getType() == EventDefinition.TYPE_POST) {
            unregister(listenersPost, eventDefinition, eventListener);
        } else {
            unregister(listeners, eventDefinition, eventListener);
        }
    }
418298
void removeEvent(EventId eventId) throws Exception {
		this.eventsBufferCache.remove(eventId);
		this.eventsBuffer.remove(eventId);
	}
671931
@Override
	public void undo(Transaction tx) {
		Buffer buff = tx.bufferMgr().pin(blk);
		
		LogSeqNum lsn = tx.recoveryMgr().logSetValClr(this.txNum, buff, offset, val, this.lsn);
		VanillaDb.logMgr().flush(lsn);
		
		buff.setVal(offset, val, tx.getTransactionNumber(), null);
		tx.bufferMgr().unpin(buff);
		// Note that UndoNextLSN should be set to this log record's lsn in order
		// to let RecoveryMgr to skip this log record. Since this record should
		// be undo by the Clr append there.
		// Since Clr is Undo's redo log , here we should log
		// old val setVal log to make this undo procedure be redo during
		// repeat history

	}
1366438
protected final void fireChildrenRemoved(BeanContextMembershipEvent event)
	{
		Object listeners[];
		synchronized (bcmListeners)
		{
			listeners = bcmListeners.toArray();
		}
		for (int i = 0; i < listeners.length; i++)
		{
			BeanContextMembershipListener l = (BeanContextMembershipListener) listeners[i];
			l.childrenRemoved(event);
		}
	}
578445
@Override
    public void eventRestored() throws SevereMessageStoreException
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "eventRestored");
        super.eventRestored();
        // After a restart, if the referredItem is not obtained before a postCommit
        // then the item can not be obtained. Therefore we need to always obtain
        // the item (msgstore recreate their links in the following method).
        // Defect 302341
        getMessageItem();

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "eventRestored");
    }
1028092
@SuppressWarnings("unchecked")
	protected void fireEntryRemoved(K key, V value) {
		if (this.listeners != null) {
			for (final DMapListener<? super K, ? super V> listener : this.listeners.getListeners(DMapListener.class)) {
				listener.entryRemoved(key, value);
			}
		}
	}
1356685
public void registerUndoRedo(Button undo, Button redo) {

        if (getState().m_enableUndoRedo) {
            throw new RuntimeException("Undo/redo already registered.");
        }
        undo.setId(HTML_ID_PREFIX + m_componentId + "-undo");
        redo.setId(HTML_ID_PREFIX + m_componentId + "-redo");
        getState().m_enableUndoRedo = true;
        markAsDirty();
    }
169678
def keyPressEvent(self, keyEvent):
        
        undoObj = UndoSelfInsert(self, keyEvent.text())
        self.qteUndoStack.push(undoObj)
38868
@Fix(io.sarl.lang.validation.IssueCodes.UNREACHABLE_BEHAVIOR_UNIT)
	public void fixUnreachableBehaviorUnit(Issue issue, IssueResolutionAcceptor acceptor) {
		MemberRemoveModification.accept(this, issue, acceptor);
	}
652166
void undoAdd(Link newLink)
                    throws ObjectManagerException {
        final String methodName = "undoAdd";
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.entry(this, cclass, methodName, new Object[] { newLink });

        // Detach this Link from the list.
        if (newLink.next == null) { // Are we the tail of list?
            tail = newLink.previous;
        } else { // Not tail of the list.
            // Join up the backwards Link.
            Link nextLink = (Link) newLink.next.getManagedObject();
            nextLink.previous = newLink.previous;
        } // if at tail of list.

        if (newLink.previous == null) { // Are we the head of list?
            head = newLink.next;
        } else { // Not head of the list.
            // Join up the forwards Link.
            Link previousLink = (Link) newLink.previous.getManagedObject();
            previousLink.next = newLink.next;
        } // if at head of list.

        // Reset the availableHead.
        availableHead = head;
        skipToBeDeleted();
        decrementSize(); // Adjust list length. 

        // Give back all of the remaining space.
        owningToken.objectStore.reserve((int) -reservedSpaceInStore, false);

        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.exit(this, cclass, methodName);
    }
1345459
public void statementClosed(javax.sql.StatementEvent event) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
            Tr.event(this, tc, "statementClosed",
                      "Notification of statement closed received from the JDBC driver",
                      AdapterUtil.toString(event.getSource()),
                      AdapterUtil.toString(event.getStatement())
                            );

        // Statement.close is used instead of these signals.
    }
814605
@Override
    protected void onRemovedInternal() {
        final List<TransformerChangeListener> listeners = getAllListeners();
        for (final TransformerChangeListener listener : listeners) {
            listener.onOutputChanged(this, new LinkedList<>());
            listener.onRemove(this);
        }
    }
702185
void setUndoRedoState(UndoRedoState state) {

        if (state.hasUndo()) {
            m_undoButton.enable();
        } else {
            m_undoButton.disable(Messages.get().key(Messages.GUI_TOOLBAR_UNDO_DISABLED_0));
        }
        if (state.hasRedo()) {
            m_redoButton.enable();
        } else {
            m_redoButton.disable(Messages.get().key(Messages.GUI_TOOLBAR_REDO_DISABLED_0));
        }
    }
1226437
private void dispatchLegacyEventIfNeeded(ManagerEvent event)
    {
        if (event instanceof DialBeginEvent)
        {
            DialEvent legacyEvent = new DialEvent((DialBeginEvent) event);
            dispatchEvent(legacyEvent);
        }
    }
555463
@Override
    public void registerRecoveryEventListener(RecoveryEventListener rel) /* @MD19638A */
    {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "registerRecoveryEventListener", rel);

        RegisteredRecoveryEventListeners.instance().add(rel);

        if (tc.isEntryEnabled())
            Tr.exit(tc, "registerRecoveryEventListener");
    }
1049280
@Override
    @Transactional
    public void cancelRestore(String restoreId) throws SnapshotException {
        this.jobManager.cancelRestore(restoreId);
        this.restoreRepo.deleteByRestorationId(restoreId);
    }