Community
Participate
Working Groups
The title says it all: 'Encapsulate field' refactoring is missing default (friendly) access modifier.
Errr.. whoops. It's there, just invisible when encapsulating protected field. Changing bug title to ''Encapsulate field' refactoring dialog should display all options, including disabled ones' -- IMHO user should be able to refactor even public field to private one with private setter/getter but I guess it's done like currently for a reason. I believe that not showing disabled option is bad UI design and I suggest to show all options, including disabled ones.
I guess the rational was that an accessor can not have a smaller visibility than the field. But this is something that the sure maybe knows better. I would also show all options and warn later if the visibility is not good enough.