DOMINIK SYMONOWICZ's blogs - FOREVER HUNGRY of knowledge, sarcasm, smiling, music, dancing, and food ...lots of food.
This blog is as notes with solutions for simple problems that happen to a developer. A non-it blog can be found here: Dominik Symonowicz's non-IT blog and website
I tried to give a simplified solution with an explanation, added documentation, sarcastic comment and weird example.
I hope you will enjoying reading.
21 March 2011
Useful shortcut in Eclipse: Generate setters ang getters methods
When you learn your first language (Java in these days) , then you get very excited when you practice implementing methods ,so implementing setters and getters is very orgasmic ... however , when you start doing bigger and bigger project then you discover that writing setters and getters is very boring and you start dreaming that these things can be done automatically and ... it is possible ....
In Eclipse / SpringSource Tool Suite:
What you need to do is decleare your variable
Press Alt + Shift + S and choose "Generate Getters and Setters
and implementation is done for you :).
It means i found second reason to like Eclipse : (first one was quickfix) .