fillAll(descr, rootNode, null);
}
private void fillAll(HierarchyDescriptor subDescr, DefaultMutableTreeNode parent, Wrap wrap) {
ControlList hierarchy = subDescr.getHierarchy();
Wrapper wrapper = subDescr.getWrapper();
List controls = null;
if (wrap == null) {
controls = hierarchy.getControls();
} else {
if (hierarchy instanceof ControlHierarchy) {
controls = ((ControlHierarchy) hierarchy).getChildren(wrap.getControl());
}
}
MyTreeNode node;
if (controls != null) {
for (Object c : controls) {
node = new MyTreeNode(c, wrapper.wrap(Object.class, c));
parent.add(node);
fillAll(subDescr, node, node.getWrap());
}
}
if (wrap != null) {