I would like Eclipse to format some code which calls a builder as follows:
final Item item = new Item.Builder()
.name("something")
.field("a value")
.build();
i.e. aligning on the '.' character from the first line. I can manually convince Eclipse to do this by aligning the second line (the .name("something")) by hand, but any auto-formatting destroys this.
I've played around with all of the various formatting options that I can find in Eclipse and none of them seem to do what I want. Any ideas on if there are format options to lay out the code in this way?