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.
According to the RFE originaly filed against the project module we need support for auto-save feature of modified documents, please see mmetelka's comments in original issue #15191.
CCing reporter of original RFE.
I should add, as the author of the original RFE, that I'm more interested in having the list of files that are opened auto-saved rather than the contents of the files. This is so that when NB crashes and I restart, the same files are open as before the crash. I compile often enough (which Saves All) that auto-save of file contents is not a feature I miss.
Just found this issue assigned to my old registration id. Assigning to correct owner.
Target milestone -> 3.3.1.
This needs to be designed first. What is exactly needed, and where it should be done.
There was a discussion on dev@openide: http://openide.netbeans.org/servlets/ReadMsg?msgId=217045&listName=dev where Wayne described how he implemented the SaveAs cookie. We should follow his suggestion.
Yarda, this is something else then SaveAs, at least I hope so, otherwise too confused about all of that.
This issue needs to be renamed, or a new issue needs to be created, because I think there is confusion as to what is being requested. SaveAs has nothing to do with the request. I merely want the state of the editor window (which files are open) to persist to the file system so in the case of a crash, a restart of NetBeans brings up the same files that were open at or right before the time of the crash, not the list from the last time NB was successfully shut down (the current behavior).
I'm sorry for making the confusion, but when I think about the autosave request once again - the ability to do SaveAs could be used in autosave: Find all modified objects and ask them to saveas into some temp directory...
Seems it should be implemented by utilities (or editor) module, not in core module. Reassigned.
Utilities module will not implement such new feature. Reasigned to editor module, though I think this should be implemented by org.openide.text or appropriate Core implementation.
emacs, vi and other editors have the "recover" feature. They periodically save the opened and modified files to a private directory or under special names (Emacs uses .#NbTopManager.java#). When the editor is launched after an abnormal termination it knows that there are some "crashfiles" and offer the user an option to recover. The checking is made either at the start of the editor or the next time you open the same file again (NbTopManager.java in our example). I can imagine one potential stumbling block: in emacs/vi you can open _any_ file without precondition whereas in NetBeans the file must be on some mouted filesystem. Yarda, can you please evaluate the possibility? Thanks I've updated the Summary.
I have finally realized what the original RFE is about (at least I hope) and I have created issue 21020 for windowsystem autosave. *** This issue has been marked as a duplicate of 21020 ***
verified