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 129469 - Refactoring doesn't update .form files
Summary: Refactoring doesn't update .form files
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-06 21:34 UTC by drampulla
Modified: 2008-03-17 11:27 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 drampulla 2008-03-06 21:34:03 UTC
When I refactor a swing form into a new package, other forms in the project that reference this form are not properly 
updated.  The code that is generated was properly updated, but when I use the visual editor, it complains that the 
class could not be found.  

Steps to reproduce:
1. Create a form com.xxx.test.Form1
2. Create a form com.xxx.test.Form2
3. Modify Form1 to put Form2 as a tab of a JTabbedPane (you may have to compile your project before it lets you do 
this)
4. Refactor Form2 to com.xxx.otherpackage.Form2
5. Open Form1 in the visual editor
6. IDE will complain that it can't find com.xxx.test.Form2 anymore (although com.xx.test.Form1.java was properly 
updated, so the problem is just in the .form file).
Comment 1 Jana Maleckova 2008-03-07 13:18:19 UTC
Not reproducible. Did you build the project after step 4?
what IDE version do you use ? 4.0 ?
Comment 2 drampulla 2008-03-10 18:40:48 UTC
I see the problem.  If I reopen the form before doing a build of the project, it complains, but if I do a build and 
then open the form everything is fine.  This is probably still a bug, just a really low priority one.
Comment 3 Jiri Prox 2008-03-14 17:29:11 UTC
Please provide you build number, I guess that your're not really using Netbeans4.0 
Comment 4 Jan Stola 2008-03-17 11:27:32 UTC
The GUI builder complains that it cannot open a form that uses a bean/component that is not compiled. That is as 
designed. The form cannot be loaded if all required classes are not compiled.