if ((invocation = getWidgetInvocation(widget, "setWidgetLeftWidth")) != null) {
if (anchor == Anchor.NONE) {
editor.removeEnclosingStatement(invocation);
}
if (anchor == Anchor.TRAILING) {
int right = getBounds().width - bounds.right();
editor.replaceInvocationName(invocation, "setWidgetRightWidth");
setInvocationArgument(invocation, 1, right, true);
}
if (anchor == Anchor.BOTH) {
int right = getBounds().width - bounds.right();