Program: 129751
Project: 129751
Buggy source:
/** 
 * DOC YeXiaowei Comment method "addCheckAndStandardButtons".
 * @param width
 * @param compositeGroupDbSettings
 */
private void addCheckAndStandardButtons(int width,Composite compositeGroupDbSettings){
  GridLayout layout2=null;
  fileField.hide();
  directoryField.hide();
  Composite checkGroup=new Composite(this,SWT.NONE);
  GridLayout gridLayout=new GridLayout(1,false);
  checkGroup.setLayout(gridLayout);
  GridData gridData23=new GridData(SWT.FILL,SWT.FILL,true,true);
  gridData23.minimumHeight=2;
  gridData23.heightHint=2;
  checkGroup.setLayoutData(gridData23);
  Composite compositeCheckButton=Form.startNewGridLayout(checkGroup,1,false,SWT.CENTER,SWT.BOTTOM);
  layout2=(GridLayout)compositeCheckButton.getLayout();
  layout2.marginHeight=0;
  layout2.marginTop=0;
  layout2.marginBottom=0;
  layout2.marginLeft=0;
  layout2.marginRight=0;
  layout2.marginWidth=0;
  GridData checkGridData=new GridData(GridData.FILL_HORIZONTAL);
  checkGridData.minimumHeight=5;
  checkGroup.setLayoutData(checkGridData);
  checkButton=new UtilsButton(compositeCheckButton,Messages.getString("String_Node_Str"),WIDTH_BUTTON_PIXEL,HEIGHT_BUTTON_PIXEL);
  checkButton.setEnabled(false);
  Group group1=Form.createGroup(this,1,Messages.getString("String_Node_Str"));
  GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.minimumHeight=80;
  group1.setLayoutData(gridData);
  Composite compositeGroupDbProperties=Form.startNewDimensionnedGridLayout(group1,4,width,100);
  String[] item={"String_Node_Str"};
  sqlSyntaxCombo=new LabelledCombo(compositeGroupDbProperties,Messages.getString("String_Node_Str"),null,item,3);
  stringQuoteText=new LabelledText(compositeGroupDbProperties,Messages.getString("String_Node_Str"),false);
  nullCharText=new LabelledText(compositeGroupDbProperties,Messages.getString("String_Node_Str"),false);
  gridData=new GridData();
  gridData.horizontalSpan=2;
  standardButton=new Button(compositeGroupDbProperties,SWT.RADIO);
  standardButton.setText(Messages.getString("String_Node_Str"));
  standardButton.setLayoutData(gridData);
  systemButton=new Button(compositeGroupDbProperties,SWT.RADIO);
  systemButton.setText(Messages.getString("String_Node_Str"));
  gridData=new GridData();
  gridData.horizontalSpan=2;
  systemButton.setLayoutData(gridData);
  Composite c=new Composite(compositeGroupDbProperties,SWT.NONE);
  GridLayout layout=new GridLayout(4,false);
  layout.horizontalSpacing=15;
  layout.verticalSpacing=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  GridData layoutData=new GridData(GridData.FILL_HORIZONTAL);
  layoutData.horizontalSpan=4;
  c.setLayoutData(layoutData);
  c.setLayout(layout);
  sqlModeLabel=new Label(c,SWT.NONE);
  sqlModeLabel.setText(Messages.getString("String_Node_Str"));
  button1=new Button(c,SWT.RADIO);
  button1.setText(Messages.getString("String_Node_Str"));
  button2=new Button(c,SWT.RADIO);
  button2.setText(Messages.getString("String_Node_Str"));
  sqlModeLabel.setVisible(false);
  button1.setVisible(false);
  button2.setVisible(false);
  sqlSyntaxCombo.setVisible(!CoreRuntimePlugin.getInstance().isDataProfilePerspectiveSelected());
  group1.setVisible(!isTOPStandaloneMode());
  if (metadataconnection != null) {
    IDBMetadataProviderObject providerObj=ExtractMetaDataFromDataBase.getProviderObjectByDbType(metadataconnection.getDbType());
    if (providerObj != null && !providerObj.isSupportJDBC()) {
      group1.setVisible(false);
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC YeXiaowei Comment method "addCheckAndStandardButtons".
 * @param width
 * @param compositeGroupDbSettings
 */
private void addCheckAndStandardButtons(int width,Composite compositeGroupDbSettings){
  GridLayout layout2=null;
  fileField.hide();
  directoryField.hide();
  Composite checkGroup=new Composite(this,SWT.NONE);
  GridLayout gridLayout=new GridLayout(1,false);
  checkGroup.setLayout(gridLayout);
  GridData gridData23=new GridData(SWT.FILL,SWT.FILL,true,true);
  gridData23.minimumHeight=2;
  gridData23.heightHint=2;
  checkGroup.setLayoutData(gridData23);
  Composite compositeCheckButton=Form.startNewGridLayout(checkGroup,1,false,SWT.CENTER,SWT.BOTTOM);
  layout2=(GridLayout)compositeCheckButton.getLayout();
  layout2.marginHeight=0;
  layout2.marginTop=0;
  layout2.marginBottom=0;
  layout2.marginLeft=0;
  layout2.marginRight=0;
  layout2.marginWidth=0;
  GridData checkGridData=new GridData(GridData.FILL_HORIZONTAL);
  checkGridData.minimumHeight=5;
  checkGroup.setLayoutData(checkGridData);
  checkButton=new UtilsButton(compositeCheckButton,Messages.getString("String_Node_Str"),WIDTH_BUTTON_PIXEL,HEIGHT_BUTTON_PIXEL);
  checkButton.setEnabled(false);
  Group group1=Form.createGroup(this,1,Messages.getString("String_Node_Str"));
  GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.minimumHeight=135;
  group1.setLayoutData(gridData);
  Composite compositeGroupDbProperties=Form.startNewDimensionnedGridLayout(group1,4,width,130);
  String[] item={"String_Node_Str"};
  sqlSyntaxCombo=new LabelledCombo(compositeGroupDbProperties,Messages.getString("String_Node_Str"),null,item,3);
  stringQuoteText=new LabelledText(compositeGroupDbProperties,Messages.getString("String_Node_Str"),false);
  nullCharText=new LabelledText(compositeGroupDbProperties,Messages.getString("String_Node_Str"),false);
  gridData=new GridData();
  gridData.horizontalSpan=2;
  standardButton=new Button(compositeGroupDbProperties,SWT.RADIO);
  standardButton.setText(Messages.getString("String_Node_Str"));
  standardButton.setLayoutData(gridData);
  systemButton=new Button(compositeGroupDbProperties,SWT.RADIO);
  systemButton.setText(Messages.getString("String_Node_Str"));
  gridData=new GridData();
  gridData.horizontalSpan=2;
  systemButton.setLayoutData(gridData);
  Composite c=new Composite(compositeGroupDbProperties,SWT.NONE);
  GridLayout layout=new GridLayout(4,false);
  layout.horizontalSpacing=15;
  layout.verticalSpacing=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  GridData layoutData=new GridData(GridData.FILL_HORIZONTAL);
  layoutData.horizontalSpan=4;
  c.setLayoutData(layoutData);
  c.setLayout(layout);
  sqlModeLabel=new Label(c,SWT.NONE);
  sqlModeLabel.setText(Messages.getString("String_Node_Str"));
  button1=new Button(c,SWT.RADIO);
  button1.setText(Messages.getString("String_Node_Str"));
  button2=new Button(c,SWT.RADIO);
  button2.setText(Messages.getString("String_Node_Str"));
  sqlModeLabel.setVisible(false);
  button1.setVisible(false);
  button2.setVisible(false);
  sqlSyntaxCombo.setVisible(!CoreRuntimePlugin.getInstance().isDataProfilePerspectiveSelected());
  group1.setVisible(!isTOPStandaloneMode());
  if (metadataconnection != null) {
    IDBMetadataProviderObject providerObj=ExtractMetaDataFromDataBase.getProviderObjectByDbType(metadataconnection.getDbType());
    if (providerObj != null && !providerObj.isSupportJDBC()) {
      group1.setVisible(false);
    }
  }
}