AhFai Chan wrote:
QUESTION: Does anyone know of any add-ons in Eclipse that would do that for me?
I saw people using other IDEs adding boilerplate codes automatically e.g. the long-winded getters-setters in FX
I am using Eclipse Version: 2019-03 (4.11.0)
P.S. I was googling and Lombok came up, does anyone have experience with that?
Tim Cooke wrote:It looks like Eclipse already has this feature built in, according to this DZone article anyway: https://dzone.com/articles/generate-rename-and-delete
AhFai Chan wrote:The problem is the data types are different for FX b/c it uses SimpleStringProperty whereas eclipse have them all in String.
Knute Snortum wrote:You might see something like this...
Knute Snortum wrote:So the way to generate getters and setters in Eclipse after installing the e(fx)clipse is:
* Create your class and add your property fields
* Right-click on the code view pane and select Source (you can't do this from the menu bar for some reason).
* Select Generate JavaFX Getters and Setters