Replace direct field access by setter and getter

I want to move a non static method into another class. To make the code working the fields must be accessed by setter/getter instead of directly using them. Is there a possibility to do the replacment using IDEAs "structural replacement"?
Original class:


Desired result after replacement:

2 comments
Comment actions Permalink

Refactor.Encapsulate Fields

Alain

2
Comment actions Permalink

"There isn't anything that IDEA can't do."
Thank you.
Andre

0

Please sign in to leave a comment.