Bug 151640 - [encapsulate field] display all visibility modifiers
Summary: [encapsulate field] display all visibility modifiers
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-24 16:38 EDT by Max Gilead CLA
Modified: 2006-07-25 06:33 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Gilead CLA 2006-07-24 16:38:22 EDT
The title says it all: 'Encapsulate field' refactoring is missing default (friendly) access modifier.
Comment 1 Max Gilead CLA 2006-07-24 16:55:08 EDT
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.
Comment 2 Martin Aeschlimann CLA 2006-07-25 06:33:33 EDT
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.