Program: 66321
Project: 66321
Buggy source:
public void createContent(Composite parent){
  composite=parent;
  ((GridLayout)composite.getLayout()).numColumns=4;
  lbName=new Label(composite,SWT.NONE);
  lbName.setText(NAME);
  txtName=new Text(composite,SWT.BORDER);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=3;
  gd.widthHint=250;
  txtName.setLayoutData(gd);
  txtName.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      modifyDialogContent();
      validate();
    }
  }
);
  lbDisplayNameID=new Label(composite,SWT.NONE);
  lbDisplayNameID.setText(DISPLAY_NAME_ID);
  lbDisplayNameID.addTraverseListener(new TraverseListener(){
    public void keyTraversed(    TraverseEvent e){
      if (e.detail == SWT.TRAVERSE_MNEMONIC && e.doit) {
        e.detail=SWT.TRAVERSE_NONE;
        openKeySelectionDialog();
      }
    }
  }
);
  txtDisplayNameID=new Text(composite,SWT.BORDER | SWT.READ_ONLY);
  txtDisplayNameID.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      modifyDialogContent();
      validate();
    }
  }
);
  txtDisplayNameID.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  btnDisplayNameID=new Button(composite,SWT.NONE);
  btnDisplayNameID.setEnabled(getAvailableResourceUrls() != null && getAvailableResourceUrls().length > 0 ? true : false);
  btnDisplayNameID.setText("String_Node_Str");
  btnDisplayNameID.setToolTipText(Messages.getString("String_Node_Str"));
  btnDisplayNameID.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      openKeySelectionDialog();
    }
  }
);
  btnRemoveDisplayNameID=new Button(composite,SWT.NONE);
  btnRemoveDisplayNameID.setImage(ReportPlatformUIImages.getImage(ISharedImages.IMG_TOOL_DELETE));
  btnRemoveDisplayNameID.setToolTipText(Messages.getString("String_Node_Str"));
  btnRemoveDisplayNameID.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      txtDisplayNameID.setText(EMPTY_STRING);
      txtDisplayName.setText(EMPTY_STRING);
      updateRemoveBtnState();
    }
  }
);
  new Label(composite,SWT.NONE).setText(DISPLAY_NAME);
  txtDisplayName=new Text(composite,SWT.BORDER);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=3;
  txtDisplayName.setLayoutData(gd);
  txtDisplayName.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      modifyDialogContent();
      validate();
    }
  }
);
  new Label(composite,SWT.NONE).setText(DATA_TYPE);
  cmbType=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
  cmbType.setLayoutData(gd);
  cmbType.setVisibleItemCount(30);
  cmbType.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent arg0){
      validate();
    }
    public void widgetSelected(    SelectionEvent arg0){
      modifyDialogContent();
      validate();
    }
  }
);
  if (isAggregate()) {
    createAggregateSection(composite);
  }
 else {
    createCommonSection(composite);
  }
  createMessageSection(composite);
  gd=new GridData(GridData.FILL_BOTH);
  composite.setLayoutData(gd);
  setContentSize(composite);
}

Fixed version (ground truth):
public void createContent(Composite parent){
  composite=parent;
  ((GridLayout)composite.getLayout()).numColumns=4;
  lbName=new Label(composite,SWT.NONE);
  lbName.setText(NAME);
  txtName=new Text(composite,SWT.BORDER);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=3;
  gd.widthHint=250;
  txtName.setLayoutData(gd);
  txtName.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      modifyDialogContent();
      validate();
    }
  }
);
  lbDisplayNameID=new Label(composite,SWT.NONE);
  lbDisplayNameID.setText(DISPLAY_NAME_ID);
  lbDisplayNameID.addTraverseListener(new TraverseListener(){
    public void keyTraversed(    TraverseEvent e){
      if (e.detail == SWT.TRAVERSE_MNEMONIC && e.doit) {
        e.detail=SWT.TRAVERSE_NONE;
        if (btnDisplayNameID.isEnabled()) {
          openKeySelectionDialog();
        }
      }
    }
  }
);
  txtDisplayNameID=new Text(composite,SWT.BORDER | SWT.READ_ONLY);
  txtDisplayNameID.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      modifyDialogContent();
      validate();
    }
  }
);
  txtDisplayNameID.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  btnDisplayNameID=new Button(composite,SWT.NONE);
  btnDisplayNameID.setEnabled(getAvailableResourceUrls() != null && getAvailableResourceUrls().length > 0 ? true : false);
  btnDisplayNameID.setText("String_Node_Str");
  btnDisplayNameID.setToolTipText(Messages.getString("String_Node_Str"));
  btnDisplayNameID.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      openKeySelectionDialog();
    }
  }
);
  btnRemoveDisplayNameID=new Button(composite,SWT.NONE);
  btnRemoveDisplayNameID.setImage(ReportPlatformUIImages.getImage(ISharedImages.IMG_TOOL_DELETE));
  btnRemoveDisplayNameID.setToolTipText(Messages.getString("String_Node_Str"));
  btnRemoveDisplayNameID.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      txtDisplayNameID.setText(EMPTY_STRING);
      txtDisplayName.setText(EMPTY_STRING);
      updateRemoveBtnState();
    }
  }
);
  new Label(composite,SWT.NONE).setText(DISPLAY_NAME);
  txtDisplayName=new Text(composite,SWT.BORDER);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=3;
  txtDisplayName.setLayoutData(gd);
  txtDisplayName.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      modifyDialogContent();
      validate();
    }
  }
);
  new Label(composite,SWT.NONE).setText(DATA_TYPE);
  cmbType=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
  cmbType.setLayoutData(gd);
  cmbType.setVisibleItemCount(30);
  cmbType.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent arg0){
      validate();
    }
    public void widgetSelected(    SelectionEvent arg0){
      modifyDialogContent();
      validate();
    }
  }
);
  if (isAggregate()) {
    createAggregateSection(composite);
  }
 else {
    createCommonSection(composite);
  }
  createMessageSection(composite);
  gd=new GridData(GridData.FILL_BOTH);
  composite.setLayoutData(gd);
  setContentSize(composite);
}