* @param usedTypes
*/
private void updateUsedTypesView(Map<XSObject, ? extends XSObjectList> usedTypes) {
if (null != usedTypes) {
final UsedTypesTreeModelAdapter usedTypesTreeModelAdapter = new UsedTypesTreeModelAdapter(usedTypes);
final FilteredTreeModel filteredModel = new FilteredTreeModel(usedTypesTreeModelAdapter, usedTypesConstraint);
jtUsedTypes.setModel(filteredModel);
// jtUsedTypes.setModel(usedTypesTreeModelAdapter);
numUsedTypes.setValue(usedTypesTreeModelAdapter.getChildCount(usedTypesTreeModelAdapter.getRoot()));
final ValueModel selectionHolder = new TreeSelectionValueModelAdapter(jtUsedTypes.getSelectionModel());