Nathan Brown wrote:
>>> And, as the icing on the cake, is it possible to change the type of a 
>>> field,
>>> and change its setter and getter too?
>>
>>
>> No, is no refactoring to change type of a field.
> 
> 
> But can this be put in, please? ;)

Is it really needed? What kind of semantics should it have?
If the only its functionality will be to change type of the field
and types of a getter and a setter, it can be pretty easily accomplished
with current IDEA functionality: delete your getter and setter,
change type of your field, re-generate getter and setter.
But it will almost certainly break your program, as usages
of your field (and your getter and setter) will no longer be valid.

The power of "Rename" is in it being able to fix _references_ to
a field, preserving your program from being broken.

If you change type of the field, it is quite unclear how to change
usages of the field to cope with the new type.

Well, that is why it is not in :)

Friendly,
        Dmitry

-- 
Dmitry Lomov
JetBrains Inc. / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

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

Reply via email to