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.
If one models a class: - when creating a new private attribute => getter and setter is generated - when generating code => the getters and setters are also implemented (not just stubs) If one creates a Class Element from existing code: - when generating code => the getters and setters are just stubs => this feature isn't being displayed and one cannot set a rev. eng. class's attributes to have getters and setters. Possible solution: When selecting an attribute, the property list should contain two extra entries: 1) name="read with" value= a combo box with "NONE" + the class methods filtered: params.length==0 && return.getClass()==attribute.getClass() 2) name="write with" value= a combo box with "NONE" + the class methods filtered: params.length==1 && params[0].getClass()==attribute.getClass() && return.getClass()==Void.getClass() => one can configure the model such that code generation also implements the getter and setter stubs.
If "Client changeability" is the option I was talking about then: 1) it does not work (no effect on the generated code) eg: I set it to "add only" and expected the getter to be implemented and the setter to be not but they still depend on that hidden setting. 2) it should have been "read only" and "write only", not "add only" and "remove only" PS: there is no option to create a constructor neither