Composite composite = PlatformUtils.createComposite(parent, 1);
new Label(composite, SWT.NONE).setText(Messages.getString("select.resources")); //$NON-NLS-1$
viewer = new TreeViewer(composite, SWT.BORDER | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
viewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
viewer.setLabelProvider(new RepositoryLabelProvider());
viewer.addPostSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
updateModel();
}
});