Hi Mike.
 
IDEA can tell some.package.MyClass from some.other.package.MyClass.  What it can't do is tell the difference in strings, eg. "Constructing MyClass", because there is no semantic information in a string that it can use.  It willc orrectly rename the class, but you have to be a bit careful if you search for usages in strings as well.
 
Cheers,
Dan
 
-----Original Message-----
From: Mike Liu [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2001 06:09
To: Eap-List@Intellij. Com
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

 



***************************************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify [EMAIL PROTECTED] immediately.

This footnote also confirms that this email message has been swept for the
presence of computer viruses.
***************************************************************************************

Reply via email to