Program: 65901
Project: 65901
Buggy source:
private void createAggregateSection(Composite composite){
  new Label(composite,SWT.NONE).setText(FUNCTION);
  cmbFunction=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=3;
  cmbFunction.setLayoutData(gd);
  cmbFunction.setVisibleItemCount(30);
  cmbFunction.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      handleFunctionSelectEvent();
      modifyDialogContent();
      validate();
    }
  }
);
  paramsComposite=new Composite(composite,SWT.NONE);
  GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.horizontalSpan=4;
  gridData.exclude=true;
  paramsComposite.setLayoutData(gridData);
  GridLayout layout=new GridLayout();
  layout.marginWidth=layout.marginHeight=0;
  layout.numColumns=4;
  Layout parentLayout=paramsComposite.getParent().getLayout();
  if (parentLayout instanceof GridLayout)   layout.horizontalSpacing=((GridLayout)parentLayout).horizontalSpacing;
  paramsComposite.setLayout(layout);
  new Label(composite,SWT.NONE).setText(FILTER_CONDITION);
  txtFilter=new Text(composite,SWT.BORDER);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.horizontalSpan=2;
  txtFilter.setLayoutData(gridData);
  txtFilter.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      modifyDialogContent();
    }
  }
);
  createExpressionButton(composite,txtFilter);
{
    Label lblAggOn=new Label(composite,SWT.NONE);
    lblAggOn.setText(AGGREGATE_ON);
    gridData=new GridData();
    gridData.verticalAlignment=GridData.BEGINNING;
    lblAggOn.setLayoutData(gridData);
    cmbAggOn=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan=3;
    cmbAggOn.setLayoutData(gridData);
    cmbAggOn.setVisibleItemCount(30);
    cmbAggOn.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(      SelectionEvent e){
        modifyDialogContent();
      }
    }
);
  }
}

Fixed version (ground truth):
private void createAggregateSection(Composite composite){
  new Label(composite,SWT.NONE).setText(FUNCTION);
  cmbFunction=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=3;
  cmbFunction.setLayoutData(gd);
  cmbFunction.setVisibleItemCount(30);
  cmbFunction.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      handleFunctionSelectEvent();
      modifyDialogContent();
      validate();
    }
  }
);
  paramsComposite=new Composite(composite,SWT.NONE);
  GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.horizontalSpan=4;
  gridData.exclude=true;
  paramsComposite.setLayoutData(gridData);
  GridLayout layout=new GridLayout();
  layout.marginWidth=layout.marginHeight=0;
  layout.numColumns=4;
  Layout parentLayout=paramsComposite.getParent().getLayout();
  if (parentLayout instanceof GridLayout)   layout.horizontalSpacing=((GridLayout)parentLayout).horizontalSpacing;
  paramsComposite.setLayout(layout);
  new Label(composite,SWT.NONE).setText(FILTER_CONDITION);
  txtFilter=new Text(composite,SWT.BORDER);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.horizontalSpan=2;
  txtFilter.setLayoutData(gridData);
  txtFilter.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      modifyDialogContent();
    }
  }
);
  IExpressionProvider filterExpressionProvider=new CrosstabAggregationExpressionProvider(this.bindingHolder,this.binding){
    protected List getChildrenList(    Object parent){
      List children=super.getChildrenList(parent);
      List retValue=new ArrayList();
      retValue.addAll(children);
      if (parent instanceof MeasureGroupHandle) {
        for (int i=0; i < children.size(); i++) {
          Object obj=children.get(i);
          if (obj instanceof MeasureHandle && ((MeasureHandle)obj).isCalculated()) {
            retValue.remove(obj);
          }
        }
      }
      return retValue;
    }
  }
;
  ExpressionButtonUtil.createExpressionButton(composite,txtFilter,filterExpressionProvider,this.bindingHolder);
{
    Label lblAggOn=new Label(composite,SWT.NONE);
    lblAggOn.setText(AGGREGATE_ON);
    gridData=new GridData();
    gridData.verticalAlignment=GridData.BEGINNING;
    lblAggOn.setLayoutData(gridData);
    cmbAggOn=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan=3;
    cmbAggOn.setLayoutData(gridData);
    cmbAggOn.setVisibleItemCount(30);
    cmbAggOn.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(      SelectionEvent e){
        modifyDialogContent();
      }
    }
);
  }
}