/**
* @param unusedTypes
*/
private void updateUnusedTypesView(Set<XSTypeDefinition> unusedTypes) {
if (null != unusedTypes) {
final UnusedTypesListModelAdapter unusedTypesListModelAdapter = new UnusedTypesListModelAdapter(unusedTypes);
final FilteredListModel filteredModel = new FilteredListModel(unusedTypesListModelAdapter, unusedTypesConstraint);
jlUnusedTypes.setModel(filteredModel);
numUnusedTypes.setValue(unusedTypesListModelAdapter.getSize());
final ValueModel selectionModel = new ListSelectionValueModelAdapter(jlUnusedTypes.getSelectionModel());
final ValueModel vModel = new JListSelectionValueModelAdapter(jlUnusedTypes.getModel(), (ListSelectionValueModelAdapter) selectionModel);
unusedTypeHierarchyCommand.setValueModel(vModel);
unusedTypeInspectionCommand.setValueModel(vModel);