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 13257 - "Cannot save" error dialog doesn't provide any useful info
Summary: "Cannot save" error dialog doesn't provide any useful info
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-06-27 20:23 UTC by Unknown
Modified: 2008-12-23 11:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2001-06-27 20:23:24 UTC
I have gotten into a state where I select the "Save All" option
on the File menu and a dialog appears that says "Cannot save".
No exception is thrown and no other info is available so it
is hard to debug what is wrong.

I checked and in NbTopManager.java, around line 740, I see this:

            descriptor = new NotifyDescriptor.Message(
                        MessageFormat.format (
                            NbBundle.getBundle
(NbTopManager.class).getString("CTL_Cannot_save"),
                            new Object[] {
((DataObject)ee.next()).getPrimaryFile().getName() }

However, in the Bundle.properties, CTL_Cannot_save is
defined as:

CTL_Cannot_save=Cannot save

I think it should be changed to:

CTL_Cannot_save=Cannot save {0}

so that the file that cannot get saved is displayed in the
error message.

Using my own build of FFJ, open and closed sources updated
on 6/26/01 around 8:00 am PDT.
Comment 1 Jan Zajicek 2001-06-29 13:35:38 UTC
Assigning to Marek (there maybe small changes in editor support).

Should this be integrated into fcs?  Now it's too late to integrate it into
pilsen_fcs, unless this will be considered as showstopper.
Comment 2 mslama 2001-10-03 17:19:46 UTC
Fixed as suggested in org.netbeans.core.Bundle.properties
Comment 3 Lukas Hasik 2001-12-03 16:58:52 UTC
verified