Bug 106693 - [encapsulate field] enable for multi-selected fields.
Summary: [encapsulate field] enable for multi-selected fields.
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P4 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 16:21 EDT by Gary Gregory CLA
Modified: 2012-05-02 12:54 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Gregory CLA 2005-08-10 16:21:38 EDT
I'd like to encapsulate all of the fields in a given class at once.
Comment 1 Thorbjørn Ravn Andersen CLA 2007-02-26 06:07:39 EST
I found the other day that this works in the outline view.

Select all the fields you want to encapsulate, and right click.
Comment 2 Deepak Azad CLA 2012-05-02 04:42:31 EDT
(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.
Comment 3 Markus Keller CLA 2012-05-02 12:54:49 EDT
Thorbjørn probably meant Source > Generate Getters and Setters... . But this source action doesn't replace field references with calls to getter/setter.