use of eu.esdihumboldt.hale.ui.common.definition.viewer.TypesContentProvider in project hale by halestudio.
the class TypeDefinitionDialog method setupViewer.
@Override
protected void setupViewer(TreeViewer viewer, TypeDefinition initialSelection) {
viewer.setLabelProvider(new DefinitionLabelProvider(viewer));
viewer.setContentProvider(new TypesContentProvider(viewer));
viewer.setInput(types);
if (initialSelection != null) {
viewer.setSelection(new StructuredSelection(initialSelection));
}
}
Aggregations