}
}
private ColumnLayoutDataInfo setWidth_addColumnLayoutData(WidgetInfo widget,
MethodInvocation invocation) throws Exception {
AstEditor editor = getEditor();
ColumnLayoutDataInfo columnData =
(ColumnLayoutDataInfo) JavaInfoUtils.createJavaInfo(
editor,
"com.gwtext.client.widgets.layout.ColumnLayoutData",
new ConstructorCreationSupport());
// set CreationSupport
Expression expression;
{
expression = DomGenerics.arguments(invocation).get(1);
String contentSource = columnData.getCreationSupport().add_getSource(null);
expression = editor.replaceExpression(expression, contentSource);
columnData.getCreationSupport().add_setSourceExpression(expression);
columnData.addRelatedNode(expression);
}
// set Association
columnData.setAssociation(new InvocationSecondaryAssociation(invocation));
editor.replaceInvocationBinding(invocation);
// set VariableSupport
VariableSupport variableSupport = new EmptyVariableSupport(columnData, expression);
columnData.setVariableSupport(variableSupport);
// add content ColumnLayoutData as child
widget.addChild(columnData);