Bug 109365 - [quick fix] Ctrl-1 on unknown getX/setX method should suggest creating field/getter/setter
Summary: [quick fix] Ctrl-1 on unknown getX/setX method should suggest creating field/...
Status: RESOLVED DUPLICATE of bug 41542
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-13 04:10 EDT by Thorbjørn Ravn Andersen CLA
Modified: 2005-09-14 03:51 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 Thorbjørn Ravn Andersen CLA 2005-09-13 04:10:19 EDT
I write the calling code first and then use Ctrl-1 to create the methods called.

If I want to create a new bean property in this fashion I write
bean.setField(var) and use Ctrl-1 to create the method, type in manually
this.field = var in the method, use Ctrl-1 to create the field, and manually
type the getter.

I would like the quick fix to recognize the setX/getX pattern and suggest
creating the complete bean property with the type of the argument. I.e. private
field, public getField, public setField
Comment 1 Martin Aeschlimann CLA 2005-09-14 03:51:50 EDT

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