()
| 1640 | |
| 1641 | |
| 1642 | void startTimerEvent() { |
| 1643 | endUndoEvent = new TimerTask() { |
| 1644 | public void run() { |
| 1645 | EventQueue.invokeLater(Editor.this::endTextEditHistory); |
| 1646 | } |
| 1647 | }; |
| 1648 | timer.schedule(endUndoEvent, 3000); |
| 1649 | // let the gc eat the cancelled events |
| 1650 | timer.purge(); |
| 1651 | } |
| 1652 | |
| 1653 | |
| 1654 | void endTextEditHistory() { |