Program: 17537
Project: 17537
Buggy source:
protected Control createDialogArea(Composite parent){
  Composite container=(Composite)super.createDialogArea(parent);
  GridLayout layout=new GridLayout();
  layout.numColumns=2;
  container.setLayout(layout);
  Label summaryLabel=new Label(container,SWT.LEFT | SWT.WRAP | SWT.BOLD);
  FontData oldFontData[]=parent.getFont().getFontData();
  FontData fontData=new FontData();
  fontData.setStyle(oldFontData[0].getStyle() | SWT.BOLD);
  fontData.setHeight(oldFontData[0].getHeight());
  fontData.setName(oldFontData[0].getName());
  Font font=new Font(container.getDisplay(),fontData);
  summaryLabel.setFont(font);
  GridData summaryLabelData=new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL);
  summaryLabelData.horizontalSpan=2;
  summaryLabel.setLayoutData(summaryLabelData);
  summaryLabel.setText("String_Node_Str");
  summaryLabel.pack();
  final GridData tableData=new GridData(GridData.FILL_BOTH);
  tableData.widthHint=200;
  Composite tableArea=new Composite(container,SWT.NONE);
  tableArea.setLayoutData(tableData);
  GridLayout tableLayout=new GridLayout();
  tableLayout.numColumns=1;
  tableArea.setLayout(tableLayout);
  final GridData gridData=new GridData(GridData.FILL_BOTH);
  Label connectionLabel=new Label(tableArea,SWT.RIGHT);
  connectionLabel.setText("String_Node_Str");
  connectionTable=new TableViewer(tableArea,SWT.SINGLE | SWT.BORDER);
  final Table table=connectionTable.getTable();
  table.setLayoutData(new GridData(GridData.FILL_BOTH));
  connectionTable.setContentProvider(new ConnectionsContentProvider());
  connectionTable.addSelectionChangedListener(this);
  connectionTable.setInput(new Object());
  Composite editArea=new Composite(container,SWT.NONE);
  editArea.setLayoutData(gridData);
  editArea.setLayout(layout);
  Label editLabel=new Label(editArea,SWT.RIGHT);
  editLabel.setText("String_Node_Str");
  GridData labelData=new GridData();
  labelData.horizontalSpan=2;
  editLabel.setLayoutData(labelData);
  connectionid=createTextControl(editArea,"String_Node_Str",connectionProperties.getHost(),50);
  host=createTextControl(editArea,"String_Node_Str",connectionProperties.getHost(),50);
  port=createNumberControl(editArea,"String_Node_Str",connectionProperties.getPort(),5);
  path=createTextControl(editArea,"String_Node_Str",connectionProperties.getPath(),20);
  passive=createCheckboxControl(editArea,"String_Node_Str",true);
  passive.setEnabled(false);
  username=createTextControl(editArea,"String_Node_Str",connectionProperties.getUsername(),20);
  password=createPasswordControl(editArea,"String_Node_Str",connectionProperties.getPassword(),20);
  errorMessageLabel=new Label(container,SWT.LEFT);
  errorMessageLabel.setFont(parent.getFont());
  Color color=new Color(Display.getCurrent(),255,0,0);
  errorMessageLabel.setForeground(color);
  GridData errorLabelData=new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL);
  errorLabelData.horizontalSpan=2;
  errorMessageLabel.setLayoutData(errorLabelData);
  connectionid.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      validateInput();
    }
  }
);
  host.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      validateInput();
    }
  }
);
  selectItem();
  container.pack();
  return container;
}

Fixed version (ground truth):
protected Control createDialogArea(Composite parent){
  Composite container=(Composite)super.createDialogArea(parent);
  GridLayout layout=new GridLayout();
  layout.numColumns=2;
  container.setLayout(layout);
  Label summaryLabel=new Label(container,SWT.LEFT | SWT.WRAP | SWT.BOLD);
  FontData oldFontData[]=parent.getFont().getFontData();
  FontData fontData=new FontData();
  fontData.setStyle(oldFontData[0].getStyle() | SWT.BOLD);
  fontData.setHeight(oldFontData[0].getHeight());
  fontData.setName(oldFontData[0].getName());
  Font font=new Font(container.getDisplay(),fontData);
  summaryLabel.setFont(font);
  GridData summaryLabelData=new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL);
  summaryLabelData.horizontalSpan=2;
  summaryLabel.setLayoutData(summaryLabelData);
  summaryLabel.setText("String_Node_Str");
  summaryLabel.pack();
  final GridData tableData=new GridData(GridData.FILL_BOTH);
  tableData.widthHint=200;
  Composite tableArea=new Composite(container,SWT.NONE);
  tableArea.setLayoutData(tableData);
  GridLayout tableLayout=new GridLayout();
  tableLayout.numColumns=1;
  tableArea.setLayout(tableLayout);
  final GridData gridData=new GridData(GridData.FILL_BOTH);
  Label connectionLabel=new Label(tableArea,SWT.RIGHT);
  connectionLabel.setText("String_Node_Str");
  connectionTable=new TableViewer(tableArea,SWT.SINGLE | SWT.BORDER);
  final Table table=connectionTable.getTable();
  table.setLayoutData(new GridData(GridData.FILL_BOTH));
  connectionTable.setContentProvider(new ConnectionsContentProvider());
  connectionTable.addSelectionChangedListener(this);
  connectionTable.setInput(new Object());
  Composite editArea=new Composite(container,SWT.NONE);
  editArea.setLayoutData(gridData);
  GridLayout editLayout=new GridLayout();
  editLayout.numColumns=2;
  editArea.setLayout(editLayout);
  Label editLabel=new Label(editArea,SWT.RIGHT);
  editLabel.setText("String_Node_Str");
  GridData labelData=new GridData();
  labelData.horizontalSpan=2;
  editLabel.setLayoutData(labelData);
  connectionid=createTextControl(editArea,"String_Node_Str",connectionProperties.getHost(),50);
  host=createTextControl(editArea,"String_Node_Str",connectionProperties.getHost(),50);
  port=createNumberControl(editArea,"String_Node_Str",connectionProperties.getPort(),5);
  path=createTextControl(editArea,"String_Node_Str",connectionProperties.getPath(),20);
  passive=createCheckboxControl(editArea,"String_Node_Str",true);
  passive.setEnabled(false);
  username=createTextControl(editArea,"String_Node_Str",connectionProperties.getUsername(),20);
  password=createPasswordControl(editArea,"String_Node_Str",connectionProperties.getPassword(),20);
  errorMessageLabel=new Label(container,SWT.LEFT);
  errorMessageLabel.setFont(parent.getFont());
  Color color=new Color(Display.getCurrent(),255,0,0);
  errorMessageLabel.setForeground(color);
  GridData errorLabelData=new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL);
  errorLabelData.horizontalSpan=2;
  errorMessageLabel.setLayoutData(errorLabelData);
  connectionid.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      validateInput();
    }
  }
);
  host.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      validateInput();
    }
  }
);
  selectItem();
  return container;
}