CodeSugar Eclipse Plugin / News: Recent posts

clone() method generation reworked

the clone() method generated is now much simpler to read, it generates something like:

public Object clone() {
Foo inst = new Foo();
inst.a = this.a;
if (foo instanceof Cloneable
&& this.foo != null) {
inst.foo = (Foo) this.foo.clone();
}
return inst;
}

Posted by Miguel Griffa 2006-02-21

New features beeing added

The CVS version (soon to be 1.4) has support for the @generated tag in javadoc comment, using this feature to prevent overwritting customized methods.

Posted by Miguel Griffa 2005-12-24

New features added

The new version of the plugin currently supports generating to String with field access or getter access. adding or excluding static final fields in tostring, and generating equals with field access of getter (people using hibernate requested this). All these options can be set in the preferences page.

Posted by Miguel Griffa 2005-12-14

Support for inheritance in toString!

the toString method now has a pretty nice logic for supporting inheritance. all non private fields inherited are added, for private fields the getter is called if available.
This should be the starting point for adding inheritance support for other generations.

Posted by Miguel Griffa 2005-10-21