Program: 141795
Project: 141795
Buggy source:
@Override protected Control createDialogArea(Composite parent){
  Composite container=(Composite)super.createDialogArea(parent);
  GridData data=(GridData)container.getLayoutData();
  data.minimumHeight=400;
  data.heightHint=400;
  data.minimumWidth=500;
  data.widthHint=500;
  container.setLayoutData(data);
  Composite viewContainer=new Composite(container,SWT.BORDER);
  viewContainer.setLayout(new GridLayout());
  viewContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
  RepositoryViewerProvider provider=new RepositoryViewerProvider(){
    @Override protected TreeViewer createTreeViewer(    Composite parent,    int style){
      return new RepositoryTreeViewer(parent,style);
    }
    @Override protected IRepositoryNode getInputRoot(    IProjectRepositoryNode projectRepoNode){
      return getInput();
    }
  }
;
  repositoryTreeViewer=(RepositoryTreeViewer)provider.createViewer(viewContainer);
  repositoryTreeViewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
  repositoryTreeViewer.expandAll();
  repositoryTreeViewer.addSelectionChangedListener(new ISelectionChangedListener(){
    public void selectionChanged(    SelectionChangedEvent event){
      boolean highlightOKButton=isSelectionValid(event);
      getButton(IDialogConstants.OK_ID).setEnabled(highlightOKButton);
    }
  }
);
  repositoryTreeViewer.addDoubleClickListener(new IDoubleClickListener(){
    public void doubleClick(    DoubleClickEvent event){
      if (getButton(IDialogConstants.OK_ID).isEnabled()) {
        okPressed();
      }
    }
  }
);
  addFilter(new ViewerFilter(){
    @Override public boolean select(    Viewer viewer,    Object parentElement,    Object element){
      if (element instanceof IRepositoryNode) {
        return true;
      }
      return false;
    }
  }
);
  return container;
}

Fixed version (ground truth):
@Override protected Control createDialogArea(Composite parent){
  Composite container=(Composite)super.createDialogArea(parent);
  GridData data=(GridData)container.getLayoutData();
  data.minimumHeight=400;
  data.heightHint=400;
  data.minimumWidth=500;
  data.widthHint=500;
  container.setLayoutData(data);
  Composite viewContainer=new Composite(container,SWT.BORDER);
  viewContainer.setLayout(new GridLayout());
  viewContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
  RepositoryViewerProvider provider=new RepositoryViewerProvider(){
    @Override protected TreeViewer createTreeViewer(    Composite parent,    int style){
      return new RepositoryTreeViewer(parent,style);
    }
    @Override protected IRepositoryNode getInputRoot(    IProjectRepositoryNode projectRepoNode){
      return getInput();
    }
    @Override protected int getStyle(){
      return SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL;
    }
  }
;
  repositoryTreeViewer=(RepositoryTreeViewer)provider.createViewer(viewContainer);
  repositoryTreeViewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
  repositoryTreeViewer.expandAll();
  repositoryTreeViewer.addSelectionChangedListener(new ISelectionChangedListener(){
    public void selectionChanged(    SelectionChangedEvent event){
      boolean highlightOKButton=isSelectionValid(event);
      getButton(IDialogConstants.OK_ID).setEnabled(highlightOKButton);
    }
  }
);
  repositoryTreeViewer.addDoubleClickListener(new IDoubleClickListener(){
    public void doubleClick(    DoubleClickEvent event){
      if (getButton(IDialogConstants.OK_ID).isEnabled()) {
        okPressed();
      }
    }
  }
);
  addFilter(new ViewerFilter(){
    @Override public boolean select(    Viewer viewer,    Object parentElement,    Object element){
      if (element instanceof IRepositoryNode) {
        return true;
      }
      return false;
    }
  }
);
  return container;
}