IDEA 4.0 - refactoring question

Hi,

I am trying to rename a field and it does not rename the getter and setter.
Is this normal behavior? I tried to search thru the forums and found a
reference where it says that IDEA is supposed to rename them.

http://www.intellij.net/tracker/idea/viewSCR?publicId=10041

Please help.
Thanks,
--Venkat.


0
Avatar
Permanently deleted user

when i highlight a field it does rename it with the getter and setter



Attachment(s):
rename.jpg
0
Avatar
Permanently deleted user

The field name and setter/getter have to follow the naming convention
that you set in the naming tab of the coding style. For example if you
did not specify that you systematically put a _ prefix to field names,
if you rename a field, IDEA won't know how to link it to its
setters/getters.

I hope this helps

Jacques

0

请先登录再写评论。