Bug 221147 - [quick fix] Split field initialization
Summary: [quick fix] Split field initialization
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2008-03-03 09:11 EST by Jan Wloka CLA
Modified: 2010-12-15 07:57 EST (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 Jan Wloka CLA 2008-03-03 09:11:23 EST
Refactoring "Split initialization from declaration" could automate the task of separating the initialization from a field's declaration. It could also be provided as a quick fix, analogous to the 'split variable declaration' quick fix for local variables.

private String foo = "whoopie";
public Bar() {}
-->
private final String foo;
public Bar() { this.foo = "whoopie"; }
Comment 1 Martin Aeschlimann CLA 2008-03-03 09:14:34 EST
Would be nice feature to implement: Help is welcome