model = new DefaultTreeModel(rootNode);
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());
}
}