Q:

How To Encapsulate Multiple Fields in Eclipse

How can I encapsulate multiple fields in Eclipse? Is there a way to select multiple fields in a "column", (like using the key combo CTRL + SHIFT) and then selecting "Encapsulate" from the context menu? 

A:

Just position your mouse over the source code, right-click and select Source -> Generate Getters and Setters...
Eclipse will display its Generate Getters and Setters screen, listing all the fields that can be encapsulated. Just click the Select All button if you want to encapsulate everything, and then click OK. Alternatively, check individual getter/setter boxes if you need finer granularity:

