在Eclipse中重命名访问器/ mutator方法? [英] Renaming accessor/mutator methods in Eclipse?

查看:177
本文介绍了在Eclipse中重命名访问器/ mutator方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

有没有办法自动重命名访问者/ mutator,当它们获取/设置的变量被重构 - >重命名(Eclipse 3.4) div>

1 - 当您在变量上选择Refactor-> Rename时,Eclipse会提示您在in-line框中输入新名称。直接在它下面,有一个帮助消息,旁边有一个小图标(箭头向下)。点击该箭头,然后选择打开重命名对话框。出现一个新的弹出窗口,并显示您需要的复选框。



2 - 或者,选择要更改的变量,然后按 两次 Alt + Shift + R。再次检查getter / setter复选框。


Is there any way to automatically rename accessor/mutator when a variable they get/set gets refactored -> renamed (Eclipse 3.4)?

解决方案

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.

这篇关于在Eclipse中重命名访问器/ mutator方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆