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 69678 - ExitDialog needs a better way of informing the user if there are errors saving files on exit.
Summary: ExitDialog needs a better way of informing the user if there are errors savin...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: UI
Depends on:
Blocks: 69978
  Show dependency tree
 
Reported: 2005-12-01 08:58 UTC by _ pcw
Modified: 2010-10-07 10:40 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 _ pcw 2005-12-01 08:58:14 UTC
The IDE's ExitDialog uses a rather unfriendly exception dialog when there are
exceptions saving files that had unsaved data when the user tried to exit the
IDE (for example, if the file in question has become read only, or or course,
any other I/O problem).

Since this dialog invokes each (unsaved) dataobject's SaveCookie.save()
directly, throwing an IOException from the cookie's save() implementation seems
to be the only way inform the ExitDialog that the file was in fact NOT saved
(and thus keep it in the list of files that are unresolved.)  I would prefer
that either there is a way for me to provide a nice message in my save()
implementation for cases like this (I can put up the message, but I still have
to rethrow the exception for ExitDialog to not remove it from the box which
means the user will see the exception box), or better, for the ExitDialog code
to handle such cases more gracefully than it does now.

Note also that for Java files, they do provide a nice message for cases like
this, but the result is that after the failure to save the file, the IDE exits
immediately and throws away the unsaved changes w/o giving the user another
chance to fix the problem.
Comment 1 Jiri Rechtacek 2006-08-11 09:34:18 UTC
Jindro, could you please consider this proposal? Thanks
Comment 2 Jindrich Dinga 2006-09-06 08:37:41 UTC
Passing to jrojcek. Jano could you please look at it? Thanks.
Comment 3 Lukas Hasik 2008-04-10 21:21:45 UTC
moving opened issues from TM <= 6.1 to TM=Dev