Bug 295281 - [getter setter] Generating getters/setters doesn't remember specific insertion point
Summary: [getter setter] Generating getters/setters doesn't remember specific insertio...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2009-11-16 14:26 EST by Janez Banic CLA
Modified: 2009-11-17 06:16 EST (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 Janez Banic CLA 2009-11-16 14:26:21 EST
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Build Identifier: 20090621-0832

Nice feature to have would be to remember insertion point where to generate getters and setters (a setting or just to remember last used)

Reproducible: Always

Steps to Reproduce:
1. ALT+SHIFT+S (in Java class)
2. R
Comment 1 Markus Keller CLA 2009-11-17 06:16:13 EST
We already do remember 'First member' and 'Last member'.

We can't remember the "After 'memberName'" options, since they change with the enclosing type, and remembering them for each type separately would be too much (and it would lead to bug reports that the action inserts them "randomly").

The only thing I see that could be done would be to remember the last selection just for the last used class (and only if it has been changed manually).

Hint: If you put the caret at the position where you want to insert the getters/setters and then start the action from there, the current position is already selected.