This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 210040 - Generate Getters and Setters hint must respect cursor position
Summary: Generate Getters and Setters hint must respect cursor position
Status: VERIFIED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-24 17:43 UTC by Michel Graciano
Modified: 2012-03-26 13:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-03-24 17:43:14 UTC
[ BUILD # : 7eabe626eb09 ]
[ JDK VERSION : 1.7.3 ]

Generate Getters and Setters hint does not respect the cursor position anymore
and the methods are generated at the end of the source code.
Comment 1 Jiri Prox 2012-03-26 07:02:08 UTC
What are your formatting settings? (check Options -> Editor -> Formatting -> Language: java, category: code generating)

Thanks
Comment 2 Dusan Balek 2012-03-26 09:19:27 UTC
Sorting of generated members according to user preferences is a new feature of NB 7.2. If you prefer the old way of generating to caret location - please set the 'Insertion Point' to 'Caret Location' in 'Options -> Editor -> Formatting -> Language: java, Category: Code Generating'. Thanks. Closing as WORKSFORME.
Comment 3 Michel Graciano 2012-03-26 13:10:00 UTC
Ok, now it has worked. I agree that the new formatting settings are great but why not use the original behaviour? I have opened the issue #210102 about it. Thanks for the clarification, I haven't payed the deserved attention to wiki page about it I guess.