Is there any way to automatically rename accessor/mutator when a variable they get/set gets refactored -> renamed (Eclipse 3.4)?
Is there any way to automatically rename accessor/mutator when a variable they get/set gets
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1 – When you select Refactor->Rename on a variable, Eclipse prompts you to enter the new name in an ‘in-line’ box. Directly below it, there is a help message and next to it a small icon (an arrow going down).Click on that arrow and then select ‘Open Rename Dialog’. A new pop-up appears with the checkboxes you need.
2 – Alternatively, select the variable you want to change and press twice Alt+Shift+R. Again check the getter/setter checkboxes.