Java 8 UndoableEditListener - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 UndoableEditListener class.

This code example shows how to use the following methods:undoableEditHappened
     * 
     * @param edit 
     */ 
    protected void registerUndoEvent(UndoableEdit edit) {
        if (listener != null) {
            listener.undoableEditHappened(new UndoableEditEvent(this, edit));
        } 
    } 
 
} 
3
CodeRank
This code example shows how to use the following methods:undoableEditHappened
     */ 
    protected final void registerUndoableEdit(UndoableEdit edit) {
        if (registerMultipleEdits) {
            multipleEdits.add(edit);
        } else { 
            listener.undoableEditHappened(new UndoableEditEvent(this, edit));
        } 
    } 
 
    /** 
     * Any changes made to the Petri net controller will be built up as a 
     * multiple edit. 
     * <p/> 
     * You will need to call finishMultipleEdits() to commit these changes to 
     * the undo listener 
     */ 
    public final void startMultipleEdits() { 
        multipleEdits.clear();
        registerMultipleEdits = true;
    } 
3
CodeRank
See Code Examples for Java 8 UndoableEditListener Methods: