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 188386 - New Action wiz displays cryptic error if Bundle.properties is unsaved
Summary: New Action wiz displays cryptic error if Bundle.properties is unsaved
Status: RESOLVED WORKSFORME
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 14:01 UTC by nelsonwd
Modified: 2013-08-09 12:04 UTC (History)
1 user (show)

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 nelsonwd 2010-07-05 14:01:34 UTC
Hi, I'm trying to get through the NetBeans Selection Management Tutorial I—Using a
TopComponent's Lookup
(http://platform.netbeans.org/tutorials/nbm-selection-1.html). I'm in the Opening Editor Components section step 6; When I click the Finish button it doesn't do anything but give me a warning. The warning only has the path to the  bundle.properties, nothing else. The OpenEditorAction class is created though so I cancel out of the wizard and continue with the tutorial. When I run the suit there is no Open Editor under file.
Geertjan Wielenga has been helping me and sent me code to correct the problem but his code is different form the tutorial and I'd like to understand why the wizard won't complete. Geertjan asked me  to post this issue.
Thanks,
Bill
Comment 1 Geertjan Wielenga 2010-07-05 15:42:02 UTC
This issue has nothing whatsoever to do with a tutorial. The issue is that you were not able to complete the New Action wizard. I.e., the New Action wizard hangs.

Now, what you need to do is provide information on:

-- which version of NetBeans IDE are you using (6.7, 6.8, 6.9, something else)?

-- what's your operating system?
Comment 2 nelsonwd 2010-07-05 18:14:28 UTC
The issue form asked me for the version and the OS so I thought it was visible to others. NetBeans version = 6.9; Windows version = XP
Thanks,
Bill
Comment 3 Jesse Glick 2010-07-06 18:29:44 UTC
Just select File > Save All before running the wizard.
Comment 4 nelsonwd 2010-07-07 16:14:44 UTC
Thanks for the reply. I just tried it with a save all just before I ran the wizard and the same thing happened.
Comment 5 Jesse Glick 2010-07-07 16:28:40 UTC
Make sure Bundle.properties really got saved; I have seen a bug in the *.properties module (unrelated to apisupport) relating to saving and modification status.
Comment 6 nelsonwd 2010-07-07 16:32:02 UTC
How do I make sure that it really got saved? the file is not open in the editor and the save all option is greyed out after I select it.
Comment 7 nelsonwd 2010-07-07 17:24:25 UTC
Well, I did find a way to save it but I don't think nature had intended it to be done this way. I had to restart NetBeans. When I shut it down it did ask me if I wanted to save bundle.properties. My guess is that when I add the text fields in the Creating the Editor Component; step 4, it writes
MyEditor.jTextField1.text=jTextField1
MyEditor.jTextField2.text=jTextField2

to the bundle.properties file and forgets to close it Writer. I did click all of save buttons that I could find (this time they did not grey-out though) before shutting down.
Thanks for your help.
Comment 8 Jesse Glick 2010-07-07 18:03:18 UTC
You are probably seeing bug #144073 or similar.