viewer, listContentProvider.getKnownElements(),
propertyNames));
}
} else if (value instanceof Set<?>) {
if (contentProvider == null) {
contentProvider = new ObservableSetContentProvider();
viewer.setContentProvider(contentProvider);
}
if (propertyNames != null && propertyNames.length > 0 && hasDefaultLabelProvider(viewer)
&& contentProvider instanceof ObservableSetContentProvider) {
ObservableSetContentProvider setContentProvider = (ObservableSetContentProvider) contentProvider;
viewer.setLabelProvider(new ObservableMapLabelProvider(
viewer, setContentProvider.getKnownElements(), propertyNames));
}
}
}
}
if (value instanceof CollectionViewSource) {