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 115982 - "insert code" -> "getters and setters": choose where to place code?
Summary: "insert code" -> "getters and setters": choose where to place code?
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-19 12:54 UTC by kawazu428
Modified: 2013-08-10 14:32 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Shows the options in NB74 (17.79 KB, image/png)
2013-08-10 14:31 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kawazu428 2007-09-19 12:55:44 UTC
Right now, using "insert code" -> "getters and setters", the IDE immediately places both getters and setters for the
fields I selected right where the cursor is at this moment. This is fine most of the time, but in some cases I would
like to, say, place all automatically generated getters and setters at the end of a class definition to have them out of
the way of my business method.

Is there any way, in "getters and setters", to provide the user with an option to choose where to insert getter/setter
definition ("right here", "end of class declaration", "top of class declaration", ...)? 

Thanks and best regards,
Kristian
Comment 1 markiewb 2013-08-10 14:31:35 UTC
Created attachment 138533 [details]
Shows the options in NB74
Comment 2 markiewb 2013-08-10 14:32:25 UTC
Worksforme using NB7.4/201308092300. There are options to define where the generated code has to be inserted. See screenshot