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