Hi Mike,
I have created a small test and didn't manage to reproduce the problem:
There was:
 
myPackage.AAA
myPackage.subpackage.AAA
 
When I tried to rename the class AAA from "myPackage" and it was renamed without affecting the class AAA from "myPackage.subpackage"
Did I create a wrong test or missed something from your explanation? Could you please send us an example project illustrating the problem?
 
Best regards,
Eugene Zhuravlev
IntelliJ Software, http://www.intellij.com/
"Develop with pleasure!"
----- Original Message -----
From: Mike Liu
Sent: 12 December, 2001 9:09 AM
Subject: [Eap-list] Renaming class

Hi,

 

Don�t know if this is considered a bug�

 

I tried renaming a class from MyClass to YourClass.  First of all, Refactor | Rename won�t work because IDEA attempts to rename without regards to packages.  For example, it tries to rename com.whatever.MyClass, MyClass, and com.whatever.somewhere.MyClass, etc.  I can�t do a Refactor | Move either because it assumes same class name.  So I did the traditional renaming by typing over the class name myself.

 

When I save the file, however, it did not rename the actual filename.  Shouldn�t it do that?  It is possible for this to be a feature for the next release (if it doesn�t a bug)? 

 

So basically:

1)       can Refactor | Rename work for class as well, with the contextual knowledge of the package of this class? and

2)       can IDEA save the file with the name of the class (case-sensitively)?

 

Platform: W2K, Release 2.5, JDK 1.3.1_01

 

Thanks,

Mike Liu

 

Reply via email to