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 - rename component fails to find all name instances
Summary: rename component fails to find all name instances
Status: RESOLVED DUPLICATE of bug 48288
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-04 01:16 UTC by _ dags
Modified: 2005-06-04 05:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***