Bug 6920 - "Change access" on member right-mouse menus [refactoring]
Summary: "Change access" on member right-mouse menus [refactoring]
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2001-12-13 16:56 EST by Robert M. Fuhrer CLA
Modified: 2003-04-24 11:34 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert M. Fuhrer CLA 2001-12-13 16:56:59 EST
It would be great if the data member and method right-mouse menus
in the "Outline" and "Hierarchy" views had a "Change member access"
item to change member access (i.e. to/from public/protected/private).

This would be especially useful if it used refactoring support to check
that, e.g., existing references won't get cut off when making access
permissions more restrictive.
Comment 1 Erich Gamma CLA 2001-12-14 06:27:38 EST
(Dirk FYI)

There are different options:
1) show the accessilbity indicator in the property sheet and support to change 
it there. 
Con: when doing Java development you almost never have the property sheet open.

2) cover the accessability change as part of the Change Signature refactoring.

3) provide it as a separate refactoring

4) provide is as code manipulation operation (no precondition checking)
Comment 2 Erich Gamma CLA 2002-05-04 14:15:37 EDT
not for 2.0
Comment 3 Dirk Baeumer CLA 2002-07-26 08:10:33 EDT
I opt for 2.
Comment 4 Dirk Baeumer CLA 2003-04-24 11:34:47 EDT
You can change the visibility of a method using change method signature, but 
without checking if the method is still reachable. No further action planned 
on this for 3.0