MCPcopy Index your code
hub / github.com/processing/processing / undoableEditHappened

Method undoableEditHappened

app/src/processing/app/ui/Editor.java:1858–1875  ·  view source on GitHub ↗
(UndoableEditEvent e)

Source from the content-addressed store, hash-verified

1856 document.addUndoableEditListener(new UndoableEditListener() {
1857
1858 public void undoableEditHappened(UndoableEditEvent e) {
1859 // if an edit is in progress, reset the timer
1860 if (endUndoEvent != null) {
1861 endUndoEvent.cancel();
1862 endUndoEvent = null;
1863 startTimerEvent();
1864 }
1865
1866 // if this edit is just getting started, create a compound edit
1867 if (compoundEdit == null) {
1868 startCompoundEdit();
1869 startTimerEvent();
1870 }
1871
1872 compoundEdit.addEdit(e.getEdit());
1873 undoAction.updateUndoState();
1874 redoAction.updateRedoState();
1875 }
1876 });
1877 }
1878

Callers

nothing calls this directly

Calls 6

startTimerEventMethod · 0.95
startCompoundEditMethod · 0.95
addEditMethod · 0.80
updateUndoStateMethod · 0.80
updateRedoStateMethod · 0.80
cancelMethod · 0.45

Tested by

no test coverage detected