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 59628

Summary: rename component fails to find all name instances
Product: ide Reporter: _ dags <dags>
Component: CodeAssignee: issues@ide <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ dags 2005-06-04 01:16:38 UTC
Adding an component to a form, say a JTable, generate the corresponding
"generated code" with jTable1 as component name. 

Then, some code is added by hand referencing that component, for instance :

jTable1.setAutoresizeMode(0);

If the component is clicked, in Visual Editor, and renamed it is renamed only in
the "guarded code" portion of source code and remains with the old name in the
rest, signaling an "cannot find symbol" error.

As an enhancement, rename action should find and rename, maybe with some
confirmation dialog, in all source code, not only in "guarded code" portion.

Similarly, refactoring should let the user choose if want or not to make
modification on "guarde code". If yes, should modify accordingly the underlying
.form file.
Comment 1 Vince Kraemer 2005-06-04 05:52:01 UTC
Though I am marking this as a dup, you may want to VOTE for the issue 48288.

Voting signals that users care about the issue and want to see it resolved

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