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 124307

Summary: Improve handling of unsaved files with Close All Windows
Product: platform Reporter: matthies <matthies>
Component: Window SystemAssignee: issues@platform <issues>
Status: NEW ---    
Severity: blocker CC: dsimonek, saubrecht
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description matthies 2007-12-20 02:22:35 UTC
When doing Close All Windows (Ctrl+Shift+W/F4), a dialog pops up for each unsaved file asking whether to 
Save/Discard/Cancel. When there are many unsaved files, answering the dialogs becomes very tedious. Editors normally 
provide options in such dialogs to apply a choice to all windows being closed. Hence:
- Provide an additional Save All button
- Provide an additional Discard All button
- Have the Cancel button cancel the closing of all windows, not just the current one.
Comment 1 David Simonek 2008-10-30 17:12:37 UTC
Yes, would be good. However we have no plans to work on it now, calling community into action, patches welcome.
Comment 2 theskad 2008-12-12 09:12:43 UTC
Started with implementation of standalone module. For initial version:

Startup: Register actionGlobalContext listener in module installer. 
Global context listener: When FileObject changes, change to status line to nothing|file path|first file path.
Configuration: TBD (using view menu as proposed seems to be a good idea)

Opened issues so far:
- using module installer is not a good idea (maybe register listener somewhere else -- upon setting change)
- is it possible to display to preserve message in status bar?

Will post preview of module at Dec 15th (Monday) as zip file attached to this issue.
Comment 3 theskad 2008-12-12 09:16:48 UTC
I am very sorry for this, but I've changed a status of different issue :-( 
Could you please return it to NEW state? Can's see any way to do it.

Once again sorry.
Adam
Comment 4 matthies 2008-12-12 09:32:43 UTC
@theskad: Returning the issue to status NEW can be done by choosing "reassign issue to" (see the help page 
for "Status"). I've already done this now.