Community
Participate
Working Groups
I'd like to encapsulate all of the fields in a given class at once.
I found the other day that this works in the outline view. Select all the fields you want to encapsulate, and right click.
(In reply to comment #1) > I found the other day that this works in the outline view. > > Select all the fields you want to encapsulate, and right click. Nope, it doesn't in 4.2 I20120429-1800.
Thorbjørn probably meant Source > Generate Getters and Setters... . But this source action doesn't replace field references with calls to getter/setter.