public void createControl(Composite parent) {
    Composite composite = PlatformUtils.createComposite(parent, 1);
    new Label(composite, SWT.NONE).setText(Messages.getString("select.version")); // $NON-NLS-1$

    versions = new List(composite, SWT.BORDER | SWT.MULTI);
    versions.setLayoutData(new GridData(GridData.FILL_BOTH));
    populateVersions();

    super.setControl(composite);
  }
  public void createControl(Composite parent) {
    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();
          }
        });
    hookDoubleClickAction();
    super.setControl(composite);
  }