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
Popular Posts
-
Bugzilla is the Bugs/Issues Tracking Tool from The Mozilla Organization. Version 2.18 is the latest stable release. There are couple of res...
-
Highly useful HTML5 Reference [Click to see the original]
-
I have updated my earlier post on JDBC Drivers. Updated version can be viewed here .
-
Top 20 replies by Programmers to Testers when their programs don't work: 20. "That's weird..." 19. "It's never do...
-
Microsoft download from The Garage: Mouse without Borders - Next at Microsoft - Site Home - TechNet Blogs : Mouse Without Borders is a proje...
No comments:
Post a Comment