Bug 10733 - DCR: generate constructor action [code manipulation]
Summary: DCR: generate constructor action [code manipulation]
Status: RESOLVED DUPLICATE of bug 39188
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
: 39360 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-04 18:05 EST by Peter Burka CLA
Modified: 2003-06-26 06:35 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 Peter Burka CLA 2002-03-04 18:05:51 EST
In the outline view, I can select some fields and choose 'Generate Getter and 
Setter'.  I would like to be able to select some fields and choose 'Generate 
Constructor'.  The helper should create a new constructor which takes arguments 
of the same type and name as the fields that I selected, and assigns them to 
the fields.

I find myself writing this sequence by hand very frequently.

e.g. tons of constructors look like:
public Point (int x, int y) {
	this.x = x;
	this.y = y;
}

(20020215 build)
Comment 1 Erich Gamma CLA 2002-03-04 18:19:58 EST
good suggestion but can't commit for 2.0
Comment 2 Dirk Baeumer CLA 2002-07-23 09:21:29 EDT
[code generation]

Consider for 2.1
Comment 3 Dirk Baeumer CLA 2002-07-23 13:34:24 EDT
[code manipulation]
Comment 4 Dirk Baeumer CLA 2003-04-28 06:03:13 EDT
Chaning state from assigned later to resolved later. Assigned later got 
introduced by the last bug conversion and is not a supported Eclipse bug state.
Comment 5 Dirk Baeumer CLA 2003-06-26 06:34:14 EDT
*** Bug 39360 has been marked as a duplicate of this bug. ***
Comment 6 Dirk Baeumer CLA 2003-06-26 06:34:47 EDT
Reopening. Function is on M2 plan.
Comment 7 Dirk Baeumer CLA 2003-06-26 06:35:56 EDT

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