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 114326 - getter / setter generation wizard: allow selection of access modifiers
Summary: getter / setter generation wizard: allow selection of access modifiers
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-31 09:59 UTC by kawazu428
Modified: 2014-09-01 06:59 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kawazu428 2007-08-31 09:59:21 UTC
While using "Insert Code" -> "getters and setters" in some Java class, the wizard window currently presented is rather
straightforward. Having an option to specify access modifiers "private" or "protected" for each method would be beneficial.

Thanks in advance and best regards,
Kristian
Comment 1 terje7601 2014-09-01 06:59:02 UTC
When generating getters and setters, I typically want public getters & protected setters. While there is already the "Encapsulate Fields..." refactoring, I would also like to see this enhancement in the "Insert Code" wizards. It could be as simple (visually, I'm not saying it's simple to implement ;)) as 2 comboboxes to select getter/setter visibility.