Generating Getters and Setters Improved
By Petr on Nov 10, 2008
Today I have committed to the trunk small improvement of generating getters and setters for class properties. It's based on your suggestion and as you can see on the pictures, you can select the way, how to generate the getter and setter method name.
There is a new combo box that contains two items which display the result of the method name for the first class field. On the picture you can see that you can select between two ways. The first one is the way which is used in NetBeans 6.5 and the second one is with underscore between get/set and property name.
There is the first question: Does somebody use different form of the getter and setter name? If yes, please speak up and I will update the dialog.
The enhancement is not fully finished. The value of the combo box now is not remembered, but I will add functionality, which will remember it per project. So the second question is: Do you use different form of getter and setter method names in different projects? Or you use just one way? Should be project or global options?
When I tested the enhancement then I have thinking to add also option for generating Php doc stub. But I haven't time to finish it yet.