Java – chained method format in eclipse
•
Java
I want to configure the eclipse Java formatter to format chained method calls:
lblName .setX(last.getX() + last.getWidth()) .setY(0) .setHeight(this.height) .setWidth(80);
My problem is that if the first method call is placed on the second line, I don't know how to format it just like this This call should not be affected:
lblName.setX(last.getX() + last.getWidth()).setY(0).setHeight(this.height).setWidth(80);
Solution
You say?
...if the first method call already is placed...call should be untouched...
If you do not want the formatter to wrap wrapped rows, look at this panel:
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码