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 183112 - [69cat][ruby] Refactor-Renaming of a class should rename the file as well.
Summary: [69cat][ruby] Refactor-Renaming of a class should rename the file as well.
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-29 17:27 UTC by esmithbss
Modified: 2011-01-28 20:14 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 esmithbss 2010-03-29 17:27:17 UTC
Product Version = NetBeans IDE Dev (Build 201003290201)
Operating System = Linux version 2.6.32-17-generic running on i386
Java; VM; Vendor = 1.6.0_18
Runtime = Java HotSpot(TM) Client VM 16.0-b13

When you rename a class, the filename needs to be renamed as well, and vice-versa.  Rename a file, rename a class.
Comment 1 Erno Mononen 2010-04-01 11:26:25 UTC
Yeah, we should do this at least when there is a 1-1 match with the file name and the class in it; of course a file may contain multiple top level classes and classes whose names have nothing in common with the file name.  When refactoring file names, we'd then also need to refactor require statements.
Comment 2 esmithbss 2010-04-01 18:03:41 UTC
Agreed.
(I hadn't even thought of require statements).

Require statements brings in another possibility that needs to be verified with path renaming.