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

Summary: 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
Product: editor Reporter: sproger1
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.