Project: JDT
Bug 15830 Encapsulate field should allow visibility selection
Reported: 2002-05-12 16:25:37 | Status: resolved fixed

I love this feature! It would be even better if the first page of the dialog allowed selection of visibility. It is very common to create public getters/setters for private or protected fields. It's a little tedious to have to manually change this every time. Plus, visibility can (or could) affect how much code needs to be changed. It would be better to get it right the first time.

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/sef/SelfEncapsulateFieldRefactoring.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/sef/SelfEncapsulateFieldInputPage.java