While working in my latest project, I came across a situation where I needed a toString method for my TO (Transfer Object) classes. Instead of using reflection, I simply downloaded Eclipse Plugin for toString generation. Restart the Eclipse and it is ready to be used. For any class that require a toString(), switch to Package Explorer, and right click on the class name. Select 'Generate toString' from the context menu, select the fields, and the method is there in the class!
I had this plugin for quite some time, and had actually forgotton that its not the part of Eclipse. So, in my current project, when I failed to see 'toString generator', I realized it a plugin :)
Besides toString, if you like to see equals() and hashCode() methods as well, use Commonclipse plugin.
Blog on things around me - Quality Management, Free & Open Source Software, Gadgets, Utilities...
Subscribe to:
Post Comments (Atom)
Total Pageviews
396,259
Popular Posts
-
" Is you primary platform Microsoft based? Do you work with Microsoft products most of the time? Are most of your Google Searches Micro...
-
MILLENNIALS Text and IM all day long; reach out to friends by posting status or photos on Facebook; use Skype to call a college friend who...
-
I tried reaching Google Adsense via google.com/adsense in Google Chrome, and I was prompted with the this message :) Amazon.com Get Technica...
-
Always give your 100% to work... :) [received in an email]
-
Google today released a new browser based tool that will make learning and testing code for Google's Javascript APIs a lot easier. Googl...
No comments:
Post a Comment