CompoundEdit
497498499500501502503504
public final void startCompoundEdit() { if (isChangeUndoable()) { if (compoundEdits == null) { compoundEdits = new Stack<KongaCompoundEdit>(); } compoundEdits.push(new KongaCompoundEdit()); } }
509510511512513514515516517518519520
} } public final void stopCompoundEdit() { if (isChangeUndoable() && compoundEdits != null && !compoundEdits.isEmpty()) { KongaCompoundEdit edit = compoundEdits.pop(); edit.end(); if (!edit.isEmpty()) { handleEdit(edit); } } }