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.
We should consider modifying the document by only diffs for document reloads. Instead of the current remove-all-content; insert-new-content-from-file using the diffs would naturally save all the acompanying information like breakpoints, bookmarks etc. and other editor-related information not expressed by annotations.
I think this is an ENH request.