void (DomElement element) { final Class<DomElement> aClass = (Class<DomElement>)ClassUtil.getRawType(myChildDescription.getType()); final DomElement domElement = element.getParentOfType(aClass, false); int index = myCollectionElements.indexOf(domElement); if (index < 0) index = 0; myCollectionPanel.getTable().setRowSelectionInterval(index, index); }