| Summary: | Source/Generate Getters and Setters should get Insertion points back | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Christoph Lechleitner <lech> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | daniel_megert, stan |
| Version: | 3.4.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux-GTK | ||
| Whiteboard: | |||
|
Description
Christoph Lechleitner
*** This bug has been marked as a duplicate of bug 250713 *** I refuse to see this one as duplicat of #250713! The legacy organisation of java sources is: - member declarations - constructors - "real" methods - getters/setters When generating getters+setters, my cursor is somewhere in the member declarations, therefore a preselection based on cursor position is totally useless! Solving #8009 might reduce the annoyingness of this missing feature, but still would not replace what was there for years. >Build ID: M20080911-1700 > >Steps To Reproduce: >1. edit a Java file >2. right-click, "source", "generate getters and setters" >3. insertion points "After last method", "Before first method" are missing They are now called 'First Member' and 'Last Member'. If you set it to e.g. 'Last Member' it will use this setting the next time and not the cursor position. There are no plans to bring the old insertion points back. Ouch. I was really sure "First member/Last member" refers to the member declarations, but those do exactly what I need. So after all it's a misunderstanding, not a bug. Thanks for the clarification! Would'nt be "INVALID" or "WORKSFORME" be the better resolution for this "bug"? Anyway, the current stats is much better than beeing called a duplicate, because now other people that share my misunderstanding can find it ;-)) . For the record a further clarification:
"First member" / "Last member" refer to all members, i.e. variable declcarations as well as methods and constructors. In other words, they point to right after the opening { resp. right before the closing } of the whole class.
I am also missing this feature. Now creating getter and setter at correct place is slow. |