Your Internet Explorer version is not compatible with our shopping cart system. Please use version 9 or higher to avoid problems with your order(s). Close
While editing the class for which you want to generate getters/setters, right click mouse and select Source -> Generate Getters and /Setters. Select the properties for which you want to generate getter and/or setter.
While editing the class for which you want to generate getters/setters, right click mouse and select Source -> Generate Getters and /Setters. Select the properties for which you want to generate getter and/or setter.
Maybe I wasn’t clear enough. I know how to have eclipse generate these methods. My question is about the format of the generated code.
When you start the getter/setter-generation the Eclipse wizard has a link to the right preference section at the bottom. They are defined in the “Java Code Style > Code Templates”. There you could enable project settings and change the templates for Comments.Getters, Comments.Setters, Code.Getter_Body and Code.Setter_Body. But after generation the code formatter will does his work – so you’ll get line breaks after the brackets.