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 - Improve handling of unsaved files with Close All Windows
Summary: Improve handling of unsaved files with Close All Windows
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-20 02:22 UTC by matthies
Modified: 2009-01-06 14:41 UTC (History)
2 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 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.