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 16650 - Text editors should be able to recover after crashes
Summary: Text editors should be able to recover after crashes
Status: VERIFIED DUPLICATE of bug 21020
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: ARCH, UI
Depends on:
Blocks:
 
Reported: 2001-10-17 16:35 UTC by Vitezslav Stejskal
Modified: 2007-11-05 13:44 UTC (History)
5 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitezslav Stejskal 2001-10-17 16:35:12 UTC
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.
Comment 1 Vitezslav Stejskal 2001-10-17 16:36:16 UTC
CCing reporter of original RFE.
Comment 2 K.C. Baltz 2001-10-17 20:59:32 UTC
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.  
Comment 3 mslama 2001-11-14 16:00:18 UTC
Just found this issue assigned to my old registration id. Assigning to
correct owner.
Comment 4 Jan Chalupa 2001-11-27 13:02:46 UTC
Target milestone -> 3.3.1.
Comment 5 Peter Zavadsky 2002-01-29 13:18:13 UTC
This needs to be designed first. What is exactly needed, and where it
should be done.
Comment 6 Jaroslav Tulach 2002-01-29 14:45:53 UTC
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.
Comment 7 Peter Zavadsky 2002-01-29 15:50:19 UTC
Yarda, this is something else then SaveAs, at least I hope so,
otherwise too confused about all of that.
Comment 8 K.C. Baltz 2002-01-29 19:02:50 UTC
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).
Comment 9 Jaroslav Tulach 2002-01-30 09:10:20 UTC
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...
Comment 10 Peter Zavadsky 2002-02-11 17:02:45 UTC
Seems it should be implemented by utilities (or editor) module, not in
core module. Reassigned.
Comment 11 _ lkramolis 2002-02-11 17:40:20 UTC
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.
Comment 12 _ ttran 2002-02-14 09:32:45 UTC
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.
Comment 13 Jaroslav Tulach 2002-02-28 16:48:19 UTC
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 ***
Comment 14 Vitezslav Stejskal 2003-07-10 12:57:34 UTC
verified
Comment 15 Vitezslav Stejskal 2003-07-10 13:04:07 UTC
verified