use of org.whole.lang.ui.controls.JavaClassFileFilter in project whole by wholeplatform.
the class WizardPojoModelImportPage1 method createSourceGroup.
@Override
protected void createSourceGroup(Composite parent) {
resourceChooser = new TreeViewer(parent);
GridLayout listAreaLayout = new GridLayout();
listAreaLayout.marginWidth = 0;
parent.setLayout(listAreaLayout);
resourceChooser.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
resourceChooser.setContentProvider(new StandardJavaElementContentProvider());
resourceChooser.setLabelProvider(new JavaElementLabelProvider());
resourceChooser.setComparator(new JavaElementComparator());
resourceChooser.addFilter(new JavaClassFileFilter());
resourceChooser.setInput(JavaCore.create(ResourcesPlugin.getWorkspace().getRoot()));
resourceChooser.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
updatePageCompletion();
}
});
}
use of org.whole.lang.ui.controls.JavaClassFileFilter in project whole by wholeplatform.
the class WizardJavaModelImportPage1 method createSourceGroup.
@Override
protected void createSourceGroup(Composite parent) {
resourceChooser = new TreeViewer(parent, SWT.SINGLE);
GridLayout listAreaLayout = new GridLayout();
listAreaLayout.marginWidth = 0;
parent.setLayout(listAreaLayout);
resourceChooser.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
resourceChooser.setContentProvider(new StandardJavaElementContentProvider());
resourceChooser.setLabelProvider(new JavaElementLabelProvider());
resourceChooser.setComparator(new JavaElementComparator());
resourceChooser.addFilter(new JavaClassFileFilter());
resourceChooser.setInput(JavaCore.create(ResourcesPlugin.getWorkspace().getRoot()));
resourceChooser.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
updatePageCompletion();
}
});
}
Aggregations