ASDT Auto Generate Getters / Setters

I just installed the 7.1 release of the ASDT Editor plugin for Eclipse and noticed a feature which is either new, or that I was unaware of previously. You can now auto generate getters / setters for all private properties in the same manner that the Eclipse Java Editor allows you to. In order to take advantage of this feature the file’s editor must have focus, then simply click Ctrl+Shift+G to open the generate Getters / Setters dialog box (you can also go to the “Source” menu and select the “Generate Getters and Setters” menu item). The dialog box allows you to select which properties you would like to auto-generate code for and whether you want to generate both getters and setters or just one or the other. This is an absolutely killer feature which helps prevent silly typos and pushes back the inevitable carpal tunnel–awesome to see a new release from the ASDT dev team!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*