This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In certain situations it would be valuable to chain calls to setters in class generated by @Model annotation in builder-like style: @Model(className="C", properties={ @Property(name="a", type=String.class), @Property(name="b", type=String.class), @Property(name="c", type=String.class), @Property(name="d", type=String.class), @Property(name="e", type=String.class), @Property(name="f", type=String.class), }) C c = new C().a("a").b("b").c("c").d("d").e("e").f("finish"); this could probably be done by enhancing the Model class with attribute boolean builder() default false; and honoring it by generating appropriate "setters" returning this.
Created attachment 157055 [details] Patch with implementation
I'd like to make this available for version 1.3 of HTML/Java API.
No comments, let's integrate something like the proposed change.
http://hg.netbeans.org/html4j/rev/10427ce1c0ee