use of org.erlide.ui.util.ResourceTreeAndListGroup in project erlide_eclipse by erlang.
the class ErlangWizardResourceImportPage method createFileSelectionGroup.
/**
* Create the import source selection widget
*/
protected void createFileSelectionGroup(final Composite parent) {
// Just create with a dummy root.
selectionGroup = new ResourceTreeAndListGroup(parent, // $NON-NLS-1$
new FileSystemElement("Dummy", null, true), getFolderProvider(), new WorkbenchLabelProvider(), getFileProvider(), new WorkbenchLabelProvider(), SWT.NONE, DialogUtil.inRegularFontMode(parent));
final ICheckStateListener listener = event -> updateWidgetEnablements();
final WorkbenchViewerComparator comparator = new WorkbenchViewerComparator();
selectionGroup.setTreeComparator(comparator);
selectionGroup.setListComparator(comparator);
selectionGroup.addCheckStateListener(listener);
}
Aggregations