Program: 69056
Project: 69056
Buggy source:
private void placeComponents(){
  cmpContainer=new Composite(shell,SWT.NONE);
{
    GridLayout glDialog=new GridLayout();
    glDialog.numColumns=3;
    glDialog.marginWidth=6;
    glDialog.marginHeight=6;
    glDialog.horizontalSpacing=5;
    glDialog.verticalSpacing=2;
    cmpContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
    cmpContainer.setLayout(glDialog);
  }
  mcSheetHeading=new MessageComposite(cmpContainer,"String_Node_Str",sMessage,"String_Node_Str",true);
  GridData gdMSGHeading=new GridData(GridData.FILL_HORIZONTAL);
  gdMSGHeading.heightHint=22;
  gdMSGHeading.horizontalSpan=3;
  mcSheetHeading.setLayoutData(gdMSGHeading);
  mcSheetHeading.setBackground(display.getSystemColor(SWT.COLOR_WHITE));
  lblImage=new Label(cmpContainer,SWT.NONE);
  lblImage.setImage(display.getSystemImage(SWT.ICON_ERROR));
  lblImage.setLayoutData(new GridData(GridData.FILL_VERTICAL));
  grpProblems=new Group(cmpContainer,SWT.NONE);
{
    GridData gdGrpProblems=new GridData(GridData.FILL_BOTH);
    gdGrpProblems.horizontalSpan=2;
    gdGrpProblems.heightHint=90;
    grpProblems.setLayoutData(gdGrpProblems);
    FillLayout layout=new FillLayout();
    layout.marginWidth=2;
    layout.marginHeight=2;
    grpProblems.setLayout(layout);
  }
  txtProblems=new Text(grpProblems,SWT.WRAP | SWT.V_SCROLL);
{
    txtProblems.setEditable(false);
  }
  new Label(cmpContainer,SWT.NONE);
  btnDetails=new Button(cmpContainer,SWT.TOGGLE);
  GridData gdBtnDetails=new GridData();
  gdBtnDetails.horizontalSpan=2;
  btnDetails.setLayoutData(gdBtnDetails);
  btnDetails.addSelectionListener(this);
  new Label(cmpContainer,SWT.NONE);
  slDetails=new StackLayout();
  cmpDetails=new Composite(cmpContainer,SWT.NONE);
  GridData gdCmpDetails=new GridData(GridData.FILL_BOTH);
  gdCmpDetails.horizontalSpan=2;
  cmpDetails.setLayoutData(gdCmpDetails);
  cmpDetails.setLayout(slDetails);
  cmpDummy=new Composite(cmpDetails,SWT.NONE);
  grpDetails=new Group(cmpDetails,SWT.NONE);
  FillLayout flSolutions=new FillLayout();
  flSolutions.marginWidth=5;
  flSolutions.marginHeight=5;
  grpDetails.setLayout(flSolutions);
  txtDetails=new Text(grpDetails,SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);
  txtDetails.setEditable(false);
  GridLayout glButtons=new GridLayout();
  glButtons.numColumns=2;
  glButtons.horizontalSpacing=5;
  glButtons.marginHeight=5;
  glButtons.marginWidth=5;
  Composite cmpButtons=new Composite(cmpContainer,SWT.NONE);
  GridData gdCmpButtons=new GridData(GridData.FILL_HORIZONTAL);
  gdCmpButtons.horizontalSpan=3;
  cmpButtons.setLayoutData(gdCmpButtons);
  cmpButtons.setLayout(glButtons);
  btnOK=new Button(cmpButtons,SWT.NONE);
  GridData gdBtnOK=null;
  if (bError) {
    gdBtnOK=new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END);
  }
 else {
    gdBtnOK=new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_CENTER);
  }
  btnOK.setLayoutData(gdBtnOK);
  btnOK.addSelectionListener(this);
  if (bError) {
    btnCancel=new Button(cmpButtons,SWT.NONE);
    GridData gdBtnCancel=new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_BEGINNING);
    btnCancel.setLayoutData(gdBtnCancel);
    btnCancel.addSelectionListener(this);
  }
  if (bError) {
    grpProblems.setText(Messages.getString("String_Node_Str"));
    txtProblems.setText(sErrors);
    btnDetails.setText(Messages.getString("String_Node_Str"));
    grpDetails.setText(Messages.getString("String_Node_Str"));
    btnOK.setText(Messages.getString("String_Node_Str"));
    btnCancel.setText(Messages.getString("String_Node_Str"));
    if (sFixes == null || sFixes.length() == 0) {
      btnDetails.setEnabled(false);
    }
 else {
      btnDetails.setEnabled(true);
      txtDetails.setText(sFixes);
    }
  }
 else {
    txtProblems.setText(sExceptionMessage);
    btnDetails.setText(Messages.getString("String_Node_Str"));
    grpDetails.setText(Messages.getString("String_Node_Str"));
    btnOK.setText(Messages.getString("String_Node_Str"));
    if (sTrace == null || sTrace.length() == 0) {
      btnDetails.setEnabled(false);
    }
 else {
      btnDetails.setEnabled(true);
      txtDetails.setText(sTrace);
    }
  }
  slDetails.topControl=cmpDummy;
  shell.setSize(shell.getSize().x,DEFAULT_HEIGHT);
  shell.layout();
}

Fixed version (ground truth):
private void placeComponents(){
  cmpContainer=new Composite(shell,SWT.NONE);
{
    GridLayout glDialog=new GridLayout(3,false);
    glDialog.marginWidth=6;
    glDialog.marginHeight=6;
    glDialog.horizontalSpacing=5;
    glDialog.verticalSpacing=2;
    cmpContainer.setLayoutData(new GridData(GridData.FILL_BOTH));
    cmpContainer.setLayout(glDialog);
  }
  mcSheetHeading=new MessageComposite(cmpContainer,"String_Node_Str",sMessage,"String_Node_Str",true);
  GridData gdMSGHeading=new GridData(GridData.FILL_HORIZONTAL);
  gdMSGHeading.heightHint=22;
  gdMSGHeading.horizontalSpan=3;
  mcSheetHeading.setLayoutData(gdMSGHeading);
  mcSheetHeading.setBackground(display.getSystemColor(SWT.COLOR_WHITE));
  lblImage=new Label(cmpContainer,SWT.NONE);
  lblImage.setImage(display.getSystemImage(SWT.ICON_ERROR));
  grpProblems=new Group(cmpContainer,SWT.NONE);
{
    GridData gdGrpProblems=new GridData(GridData.FILL_HORIZONTAL);
    gdGrpProblems.horizontalSpan=2;
    gdGrpProblems.heightHint=60;
    grpProblems.setLayoutData(gdGrpProblems);
    GridLayout layout=new GridLayout();
    layout.marginWidth=2;
    layout.marginHeight=2;
    grpProblems.setLayout(layout);
  }
  txtProblems=new Text(grpProblems,SWT.WRAP | SWT.V_SCROLL);
{
    txtProblems.setEditable(false);
    txtProblems.setLayoutData(new GridData(GridData.FILL_BOTH));
  }
  new Label(cmpContainer,SWT.NONE);
  btnDetails=new Button(cmpContainer,SWT.TOGGLE);
  GridData gdBtnDetails=new GridData();
  gdBtnDetails.horizontalSpan=2;
  btnDetails.setLayoutData(gdBtnDetails);
  btnDetails.addSelectionListener(this);
  new Label(cmpContainer,SWT.NONE);
  slDetails=new StackLayout();
  cmpDetails=new Composite(cmpContainer,SWT.NONE);
  GridData gdCmpDetails=new GridData(GridData.FILL_BOTH);
  gdCmpDetails.horizontalSpan=2;
  cmpDetails.setLayoutData(gdCmpDetails);
  cmpDetails.setLayout(slDetails);
  cmpDummy=new Composite(cmpDetails,SWT.NONE);
  grpDetails=new Group(cmpDetails,SWT.NONE);
  FillLayout flSolutions=new FillLayout();
  flSolutions.marginWidth=5;
  flSolutions.marginHeight=5;
  grpDetails.setLayout(flSolutions);
  txtDetails=new Text(grpDetails,SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);
  txtDetails.setEditable(false);
  GridLayout glButtons=new GridLayout();
  glButtons.numColumns=2;
  glButtons.horizontalSpacing=5;
  glButtons.marginHeight=5;
  glButtons.marginWidth=5;
  Composite cmpButtons=new Composite(cmpContainer,SWT.NONE);
  GridData gdCmpButtons=new GridData(GridData.FILL_HORIZONTAL);
  gdCmpButtons.horizontalSpan=3;
  cmpButtons.setLayoutData(gdCmpButtons);
  cmpButtons.setLayout(glButtons);
  btnOK=new Button(cmpButtons,SWT.NONE);
  GridData gdBtnOK=null;
  if (bError) {
    gdBtnOK=new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END);
  }
 else {
    gdBtnOK=new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_CENTER);
  }
  btnOK.setLayoutData(gdBtnOK);
  btnOK.addSelectionListener(this);
  if (bError) {
    btnCancel=new Button(cmpButtons,SWT.NONE);
    GridData gdBtnCancel=new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_BEGINNING);
    btnCancel.setLayoutData(gdBtnCancel);
    btnCancel.addSelectionListener(this);
  }
  if (bError) {
    grpProblems.setText(Messages.getString("String_Node_Str"));
    txtProblems.setText(sErrors);
    btnDetails.setText(Messages.getString("String_Node_Str"));
    grpDetails.setText(Messages.getString("String_Node_Str"));
    btnOK.setText(Messages.getString("String_Node_Str"));
    btnCancel.setText(Messages.getString("String_Node_Str"));
    if (sFixes == null || sFixes.length() == 0) {
      btnDetails.setEnabled(false);
    }
 else {
      btnDetails.setEnabled(true);
      txtDetails.setText(sFixes);
    }
  }
 else {
    txtProblems.setText(sExceptionMessage);
    btnDetails.setText(Messages.getString("String_Node_Str"));
    grpDetails.setText(Messages.getString("String_Node_Str"));
    btnOK.setText(Messages.getString("String_Node_Str"));
    if (sTrace == null || sTrace.length() == 0) {
      btnDetails.setEnabled(false);
    }
 else {
      btnDetails.setEnabled(true);
      txtDetails.setText(sTrace);
    }
  }
  slDetails.topControl=cmpDummy;
  shell.setSize(shell.getSize().x,DEFAULT_HEIGHT);
  shell.layout();
}