StringBuilder builder = new StringBuilder();
String id = adaptable.getID();
builder.append(id + " = " + getNewInstanceCode(imports) + ";\n");
builder.append(createSetCode(imports));
CompositeAdapter conAdapter = adaptable.getParentAdapter();
if (conAdapter.needGenBoundCode(adaptable.getWidget())) {
Rectangle bounds = adaptable.getWidget().getBounds();
String strBounds = id + ".setBounds(" + bounds.x + ", " + bounds.y + ", " + bounds.width + ", " + bounds.height + ");\n";
builder.append(strBounds);
}
genAddCode(imports, builder);