Hi,
 
Here's an interesting thing I haven't seen mentioned, which would be just 
magical if IDEA did it...

I used IDEA to create an encapsulated field in my class:

public class .....
{
    private String myField;

    public String getMyField()
    {
         return myField;
    }
}

Now, I just wanted to rename the field, but IDEA does not seem to realise 
that the field is linked to a getter method, so it doesn't rename the 
getter method, or any references to it.

It would be VERY nice if it did this... or if renaming the getter method 
would make it rename the field too.

The same happens with constructor parameters - if the ctor takes the 
field's value as a param those are not renamed either.

If IDEA can detect that this is a field being renamed, it should be able 
to do all this. Yes I know, it's complicated!

Cheers



_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to