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 71696

Summary: Refactor does not work
Product: guibuilder Reporter: abumujahed <abumujahed>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description abumujahed 2006-01-20 22:38:02 UTC
I am running on Solairs Sparc JDK 1.5 update 5
2GB ram
NB 5 RC1

the issue:
I have a JTextField called txtFoo
i used the text field inside the code.

I want to refactor the name from txtFoo to txtBar
in  the UI, i can change the name
the name changes are only in effect in the blue blocked area, but the old name
is used across the code.  i.e it refactored only the decleration, but not the
rest of the code.

so, i reset the name to txtFoo.

Now, in the source code, highlight txtFoo and right click, and select refactor.
change the name to txtBar.
It works, but not all the way!
I still need to go to the visual form and then rename the property manually!

the refactor in either direction should work in one step.  Bug!
Comment 1 Marek Grummich 2006-01-22 18:21:13 UTC
It's a known behaviour/bug, look at #48288

*** This issue has been marked as a duplicate of 48288 ***