Program: 148069
Project: 148069
Buggy source:
/** 
 * Create contents of the dialog.
 * @param parent
 */
@Override protected Control createDialogArea(Composite parent){
  Composite container=(Composite)super.createDialogArea(parent);
  container.setLayout(new GridLayout(1,false));
  enableNameFilterBun=new Button(container,SWT.CHECK);
  enableNameFilterBun.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      namePatternTxt.setEnabled(enableNameFilterBun.getSelection());
    }
  }
);
  enableNameFilterBun.setText(Messages.RepositoryViewFilterDialog_enableNameFilter);
  namePatternTxt=new Text(container,SWT.BORDER);
  namePatternTxt.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  enableServerObjFilterBun=new Button(container,SWT.CHECK);
  enableServerObjFilterBun.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      enableServeObjFilterComposite(enableServerObjFilterBun.getSelection());
    }
  }
);
  enableServerObjFilterBun.setText(Messages.RepositoryViewFilterDialog_enableServerObjFilter);
  serverObjViewer=CheckboxTableViewer.newCheckList(container,SWT.BORDER | SWT.FULL_SELECTION);
  table=serverObjViewer.getTable();
  table.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  serverObjViewer.addCheckStateListener(new ICheckStateListener(){
    public void checkStateChanged(    CheckStateChangedEvent event){
      IRepositoryNodeConfiguration config=(IRepositoryNodeConfiguration)event.getElement();
      if (event.getChecked()) {
        enabledConfigs.add(config);
      }
 else {
        enabledConfigs.remove(config);
      }
      enableAllBun.setSelection(enabledConfigs.size() == allConfigs.size());
    }
  }
);
  enableAllBun=new Button(container,SWT.CHECK);
  enableAllBun.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      boolean selected=enableAllBun.getSelection();
      enableAllBun.setSelection(selected);
      serverObjViewer.setAllChecked(selected);
      if (selected) {
        enabledConfigs.addAll(allConfigs);
      }
 else {
        enabledConfigs.clear();
      }
    }
  }
);
  enableAllBun.setText(Messages.RepositoryViewFilterDialog_enableAllServerObject);
  serverObjViewer.setLabelProvider(new ServerObjectLabelProvider());
  serverObjViewer.setContentProvider(new ArrayContentProvider());
  getShell().setText(Messages.RepositoryViewFilterDialog_title);
  initServerObjectFilter();
  return container;
}

Fixed version (ground truth):
/** 
 * Create contents of the dialog.
 * @param parent
 */
@Override protected Control createDialogArea(Composite parent){
  Composite container=(Composite)super.createDialogArea(parent);
  container.setLayout(new GridLayout(1,false));
  enableNameFilterBun=new Button(container,SWT.CHECK);
  enableNameFilterBun.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      namePatternTxt.setEnabled(enableNameFilterBun.getSelection());
    }
  }
);
  enableNameFilterBun.setText(Messages.RepositoryViewFilterDialog_enableNameFilter);
  namePatternTxt=new Text(container,SWT.BORDER);
  namePatternTxt.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  enableServerObjFilterBun=new Button(container,SWT.CHECK);
  enableServerObjFilterBun.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      enableServeObjFilterComposite(enableServerObjFilterBun.getSelection());
    }
  }
);
  enableServerObjFilterBun.setText(Messages.RepositoryViewFilterDialog_enableServerObjFilter);
  serverObjViewer=CheckboxTableViewer.newCheckList(container,SWT.BORDER | SWT.FULL_SELECTION);
  table=serverObjViewer.getTable();
  table.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  serverObjViewer.addCheckStateListener(new ICheckStateListener(){
    public void checkStateChanged(    CheckStateChangedEvent event){
      IRepositoryNodeConfiguration config=(IRepositoryNodeConfiguration)event.getElement();
      if (event.getChecked()) {
        enabledConfigs.add(config);
      }
 else {
        enabledConfigs.remove(config);
      }
      solveProcTriCase();
      enableAllBun.setSelection(enabledConfigs.size() == allConfigs.size());
    }
  }
);
  enableAllBun=new Button(container,SWT.CHECK);
  enableAllBun.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      boolean selected=enableAllBun.getSelection();
      enableAllBun.setSelection(selected);
      serverObjViewer.setAllChecked(selected);
      if (selected) {
        enabledConfigs.addAll(allConfigs);
      }
 else {
        enabledConfigs.clear();
      }
    }
  }
);
  enableAllBun.setText(Messages.RepositoryViewFilterDialog_enableAllServerObject);
  serverObjViewer.setLabelProvider(new ServerObjectLabelProvider());
  serverObjViewer.setContentProvider(new ArrayContentProvider());
  getShell().setText(Messages.RepositoryViewFilterDialog_title);
  initServerObjectFilter();
  return container;
}