Bug 116409 - Add a "create field from setter" quick fix
Summary: Add a "create field from setter" quick fix
Status: RESOLVED DUPLICATE of bug 41542
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: 2005-11-15 04:11 EST by Michael Wiles CLA
Modified: 2005-11-16 18:29 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Wiles CLA 2005-11-15 04:11:31 EST
I have a class X which I've created. It contains no methods.

I would like to be able to the following...

X x = new X();
x.setNumber(5);

Eclipse will then underline the "setNumber" method in the above example and one
of the quick fix options will be "create method setNumber".

I would like another option for the quick fix called: create field from setter.
Selecting that option will create the field called "number" and create the
relevant getters and setters.

That would be just great.
Comment 1 Jerome Lanneluc CLA 2005-11-15 06:22:11 EST
Moving to JDT UI
Comment 2 Martin Aeschlimann CLA 2005-11-16 18:29:08 EST

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