Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339867 - Getter setter methods should be renamed along with data member rename
Summary: Getter setter methods should be renamed along with data member rename
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 07:14 EDT by sujata.galinde CLA
Modified: 2011-03-15 14:17 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sujata.galinde CLA 2011-03-14 07:14:30 EDT
Class data member Refactor --> Rename
	When I Refactor --> Rename data member of a class. It is getting renamed at all places it is referred. My concern is - getter & setter methods associated with data memebr are not renamed along with data member rename. In general, developer Refactor -> Rename data member & continues w/o knowing that getter & setter need to be regenerated again (with new name). 
	This behaviour is risky in cases, wherein I want to have some logic in getter & setter methods. e.g. whenever marks changes, update percentage and grade like that.
	getter setter methods associated with data member should be renamed along with data member rename.
	
Thanks,
Sujata P Galinde

-- Configuration Details --
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.pde 3.6.1.r361_v20100727-7b7mFL-FET3dhESDgE5_bkJ
Comment 1 Olivier Thomann CLA 2011-03-14 09:22:10 EDT
Move to JDT/UI
Comment 2 Markus Keller CLA 2011-03-15 14:17:12 EDT
Use the Rename dialog to select the pertaining checkbox:
- press Alt+Shift+R again, or
- use the menu in the yellow popup, or
- disable Preferences > Java > Rename in editor without dialog