December 06, 2006

toString plugin for Eclipse

ToString is a simple eclipse plugin for Java Development. Although no-frills, it is pretty useful for auto-generating toString codes, for debugging, and logging helpful strings. I typically use this and then modify the code, inserting line returns, and making sure the primary keys are listed first in a typical order (objectId, relatedIds, all parameters, lists).

To use the plugin, you must be in the Java perspective, then select the class file (*.java) for which you want to generate the toString method. I haven't tried to run it on a whole directory - that would be a good feature.

Posted by ledlogic at December 6, 2006 10:21 PM