(UndoableEditEvent e)
| 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 |
nothing calls this directly
no test coverage detected