Bug 139233

Summary: When auto-creating methods like 'setXxx(xx)' and 'getXxx()', provide standard implementation
Product: [Eclipse Project] JDT Reporter: Alex Blewitt <alex.blewitt>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Alex Blewitt CLA 2006-04-28 12:41:48 EDT
If I'm creating well-known methods like setters, getters (or issers?), it might be possible to automatically suggest a default implementation. Of course, this would be done by choosing a separate proposal (e.g. 'create setSomething()' and 'create setSomething() (with default implementation)'.

Set methods could take their argument(s) and assign them to private fields of a similar name (or offer to create them if they don't already exist). Get/is methods could do the same.

It would make test-driven development a bit faster :-) Of course, this is something to be resolved later for the 3.3 run, but hopefully it will get reopened in 3.3 ...
Comment 1 Martin Aeschlimann CLA 2006-04-29 19:17:03 EDT

*** This bug has been marked as a duplicate of 41542 ***