//
////////////////////////////////////////////////////////////////////////////
private void processTreeChildren(ObjectInfo parent, List<ObjectInfo> children) throws Exception {
// exclude @UiChild widgets from parent
if (parent instanceof WidgetInfo) {
WidgetInfo widget = (WidgetInfo) parent;
// may be support for @UiChild is disabled
if (XmlObjectUtils.hasTrueParameter(widget, "UiChild.disabled")) {
return;
}
// include Position objects
{
Map<String, Position> tagToPosition = getPositions(widget);
for (Position position : tagToPosition.values()) {
children.add(position);
position.setParent(parent);
}
}
// exclude widgets
for (WidgetInfo child : widget.getChildren(WidgetInfo.class)) {
Position position = getPosition(widget, child);
if (position != null) {
children.remove(child);
}
}