Categories


Authors:
mogthew

GenerateStaticBuilder

Products: IntelliJ IDEA

Vendor: Moginc

Generates a builder in an static inner class
Downloads: 2527
Rating:
Participated in rating: 1
Version Compatible builds Date
1.0.3 80.8000 11.04.2011 Download
3 updates are hidden show all updates

Recent change notes

Fixed full class names appearing, should use presentable class names now. May require manual changing in exceptional circumstances.

General usage instructions

Alt+Insert to insert a static inner class builder.

Comments:

elhoo
Rated:
2011-04-05 14:48:13
Works well, but I have some suggestions:

I want the builder to be outside the class (and in another package), thus I want to it to use setters (ie. instead of "obj.id = id" I want "obj.setId(id)". It would also be good if it asked where to save the builder (but it's okay to generate as an inner class since it is very easy to move it anyway).

Another thing that I do is adding default values in the constructor. Is it possible to auto-generate that code as well? (ie. "obj.setId(1)")

thanks!

Ps, where is the code? If you want I can help you with the above
.