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 12966 - change more than class name after name changed in explorer
Summary: change more than class name after name changed in explorer
Status: RESOLVED DUPLICATE of bug 7565
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on: 17825
Blocks:
  Show dependency tree
 
Reported: 2001-06-18 12:21 UTC by onivy
Modified: 2007-09-26 09:14 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 onivy 2001-06-18 12:21:48 UTC
currently, after changing the name of some class in the explorer, the name is 
also changed in the class declaration.

I suggest that this change will be done by finding all instances of that name 
in the file and replacing them with the new name.

this is needed, because the name of the class may appear in the comments, 
strings(reflection), and references (e.g. singleton pattern).

I can't see why all the instances of this class name in the file should not be 
replaced automatically, but this enhancement can be configurable.

another nice enhancement would be to prompt the user for doing the same for all 
the files in the file system.
Comment 1 David Konecny 2001-06-18 13:16:56 UTC
Rename operation of file&class is done in Java module I think. And so I'm moving 
this enhancement to Java module as well.
Comment 2 Svata Dedic 2001-06-18 14:55:51 UTC
Delaying after java module is converted to use MDR in order to find all
referencies to the class name; finding referencies in comments is not feasible
(and definitely not accurate) though.
Comment 3 Jan Chalupa 2001-11-27 12:49:52 UTC
Target milestone -> 3.3.1.
Comment 4 Svata Dedic 2002-05-21 17:51:18 UTC
Cleaning up before 4.0 planning
Comment 5 Marek Grummich 2002-07-19 17:28:45 UTC
Target milestone was changed from not determined to TBD
Comment 6 Jan Becicka 2002-08-06 13:30:07 UTC

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