Any chance you will implement a “Encapsulate All Fields” refactoring?

We often write up classes with lots of private props where we want to whip up properties for all the privates.. Any chance you'll implement a "Encapsulate All Fields" refactoring? Optionally with a checkbox selector where you can pick the props to encapsulate.

thanks
mads

1 comment
Comment actions Permalink

Hello Mads,

Do you want to encapsulate fields, i.e. you already have read/write usages
to (public) fields and want to wrap them with properties? Or just wrap new
fields with property getter/setters?

In the latter case you can use Generate (Alt-Ins) to achieve the goal. Just
select Read/Write property and multiselect fields in the dialog.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


MN> We often write up classes with lots of private props where we want
MN> to whip up properties for all the privates.. Any chance you'll
MN> implement a "Encapsulate All Fields" refactoring? Optionally with a
MN> checkbox selector where you can pick the props to encapsulate.
MN>
MN> thanks
MN> mads


0

Please sign in to leave a comment.