This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 261533 - Restore undo/redo history on open documents when the IDE is restarted as well as when documents are closed and reopened without an IDE restart
Summary: Restore undo/redo history on open documents when the IDE is restarted as well...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.2
Hardware: All All
: P4 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2016-05-13 16:21 UTC by sproger1
Modified: 2016-05-13 16:21 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description sproger1 2016-05-13 16:21:47 UTC
The UndoableEditEvent class is serializable, thus it should be possible to persist undoable edits both between restarts of the IDE as well as when the document is closed and reopened.

An issue only arises if the document was edited outside of the IDE, but, this can be mitigated by detecting this situation using a check-sum or the file automatic history feature which already exists. i.e. reload the UndoableEditEvents in the UndoRedoManager unless an external file change is detected.

This capability was asked for on StackOverflow:

And I couldn't help but agree that this would be a really nice feature to have.