Program: 122877
Project: 122877
Buggy source:
@Override protected Control createDialogArea(Composite parent){
  Composite container=(Composite)super.createDialogArea(parent);
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  GridData data=(GridData)container.getLayoutData();
  data.minimumHeight=400;
  data.heightHint=400;
  data.minimumWidth=500;
  data.widthHint=500;
  container.setLayoutData(data);
  createFilterField(container);
  Composite viewContainer=new Composite(container,SWT.BORDER);
  viewContainer.setLayout(new GridLayout());
  viewContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
  repositoryTreeViewer=new RepositoryTreeViewer(viewContainer,SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
  repositoryTreeViewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
  repositoryTreeViewer.setContentProvider(new RepositoryContentProvider(getRepView()));
  repositoryTreeViewer.setLabelProvider(new RepositoryLabelProvider(getRepView()));
  addFilter(textFilter);
  if (dbSupportFilter != null) {
    addFilter(dbSupportFilter);
  }
  if (additionalFilters != null) {
    addFilter(additionalFilters);
  }
  ViewerFilter filter=typeProcessor.makeFilter();
  if (!(ERepositoryObjectType.CONTEXT).equals(type)) {
    addFilter(filter);
  }
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  repositoryTreeViewer.setInput(getInput());
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  repositoryTreeViewer.expandAll();
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  selectNode();
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  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();
      }
    }
  }
);
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  TimeMeasure.end(RepositoryReviewDialog.class.getSimpleName());
  TimeMeasure.display=false;
  TimeMeasure.displaySteps=false;
  TimeMeasure.measureActive=false;
  return container;
}

Fixed version (ground truth):
@Override protected Control createDialogArea(Composite parent){
  Composite container=(Composite)super.createDialogArea(parent);
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  GridData data=(GridData)container.getLayoutData();
  data.minimumHeight=400;
  data.heightHint=400;
  data.minimumWidth=500;
  data.widthHint=500;
  container.setLayoutData(data);
  createFilterField(container);
  Composite viewContainer=new Composite(container,SWT.BORDER);
  viewContainer.setLayout(new GridLayout());
  viewContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
  repositoryTreeViewer=new RepositoryTreeViewer(viewContainer,SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
  repositoryTreeViewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
  repositoryTreeViewer.setContentProvider(new RepositoryContentProvider(getRepView()));
  repositoryTreeViewer.setLabelProvider(new RepositoryLabelProvider(getRepView()));
  addFilter(textFilter);
  if (dbSupportFilter != null) {
    addFilter(dbSupportFilter);
  }
  if (additionalFilters != null) {
    addFilter(additionalFilters);
  }
  ViewerFilter filter=typeProcessor.makeFilter();
  addFilter(filter);
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  repositoryTreeViewer.setInput(getInput());
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  repositoryTreeViewer.expandAll();
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  selectNode();
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  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();
      }
    }
  }
);
  TimeMeasure.step(RepositoryReviewDialog.class.getSimpleName(),"String_Node_Str");
  TimeMeasure.end(RepositoryReviewDialog.class.getSimpleName());
  TimeMeasure.display=false;
  TimeMeasure.displaySteps=false;
  TimeMeasure.measureActive=false;
  return container;
}