Program: 66199
Project: 66199
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);
  if (!isTimePeriod()) {
    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();
    }
  }
);
  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();
      }
    }
);
  }
}