Summary: | [content assist] Code completion should provide constructor that sets existing fields | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Felix Berger <bflat1> |
Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P4 | CC: | daniel_megert, martinae |
Version: | 3.2 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Bug Depends on: | 202470 | ||
Bug Blocks: |
Description
Felix Berger
2007-03-15 16:37:12 EDT
There's a quick assist for that, right Martin? There is also a dialog accessible from the Source menu that generates a constructor from the fields, but it would be convenient to just have it in the completion. If I'm not mistaken the quick fix "Assign parameter to field" does it the other way around. If you don't have the fields yet and after you've written the constructor you can move the cursor on parameters of the constructor and generate the setting code and the fields necessary. Having this in content assist makes sense too (as a second proposal). Dani, I know I implemented that proposal once, but I think it should better be in the jdt-text inbox. >Dani, I know I implemented that proposal once
So, it's there already?
The 'create constructor' proposal is there already. But just for default constructors. The suggestion would be to add a second one with a parameter per field. *** This bug has been marked as a duplicate of bug 202470 *** Wanted to mark as dependent - not dup. Not for 3.4. |