Program: 119365
Project: 119365
Buggy source:
protected void addFields(){
  Group ftpParameterGroup=new Group(this,SWT.NULL);
  ftpParameterGroup.setText("String_Node_Str");
  GridLayout layoutGroup=new GridLayout();
  layoutGroup.numColumns=2;
  ftpParameterGroup.setLayout(layoutGroup);
  GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
  ftpParameterGroup.setLayoutData(gridData);
  ftpUsernameText=new LabelledText(ftpParameterGroup,"String_Node_Str",true);
  ftpPasswordText=new LabelledText(ftpParameterGroup,"String_Node_Str",1,SWT.BORDER | SWT.PASSWORD);
  ftpHostText=new LabelledText(ftpParameterGroup,"String_Node_Str",true);
  ftpPortText=new LabelledText(ftpParameterGroup,"String_Node_Str",true);
  Composite com=new Composite(ftpParameterGroup,SWT.NONE);
  layoutGroup=new GridLayout();
  layoutGroup.numColumns=2;
  com.setLayout(layoutGroup);
  List<String> codeList=new ArrayList<String>();
  codeList.add("String_Node_Str");
  codeList.add("String_Node_Str");
  codeList.add("String_Node_Str");
  encodeCombo=new LabelledCombo(com,"String_Node_Str","String_Node_Str",codeList);
  if (getConnection().getEcoding() == null || "String_Node_Str".equals(getConnection().getEcoding())) {
    encodeCombo.setText("String_Node_Str");
    getConnection().setEcoding(encodeCombo.getText());
  }
  customText=new Text(ftpParameterGroup,SWT.BORDER | SWT.SINGLE);
  GridData gd=new GridData(SWT.FILL,SWT.CENTER,true,false);
  gridData.horizontalSpan=1;
  customText.setLayoutData(gd);
  List<String> connList=new ArrayList<String>();
  connList.add("String_Node_Str");
  connList.add("String_Node_Str");
  connModelCombo=new LabelledCombo(ftpParameterGroup,Messages.getString("String_Node_Str"),"String_Node_Str",connList);
  if (getConnection().getMode() == null || "String_Node_Str".equals(getConnection().getMode())) {
    connModelCombo.setText(Messages.getString("String_Node_Str"));
    getConnection().setMode(connModelCombo.getText());
  }
  Group buildGroup=new Group(this,SWT.NULL);
  buildGroup.setText("String_Node_Str");
  layoutGroup=new GridLayout();
  layoutGroup.numColumns=1;
  buildGroup.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_BOTH);
  buildGroup.setLayoutData(gridData);
  sftpCom=new Composite(buildGroup,SWT.NONE);
  layoutGroup=new GridLayout();
  layoutGroup.numColumns=2;
  sftpCom.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_BOTH);
  sftpCom.setLayoutData(gridData);
  sftpSuppBut=new Button(sftpCom,SWT.CHECK);
  sftpSuppBut.setText(Messages.getString("String_Node_Str"));
  ftpsSuppBut=new Button(sftpCom,SWT.CHECK);
  ftpsSuppBut.setText(Messages.getString("String_Node_Str"));
  List<String> list=new ArrayList<String>();
  list.add("String_Node_Str");
  list.add("String_Node_Str");
  methodCombo=new LabelledCombo(sftpCom,Messages.getString("String_Node_Str"),"String_Node_Str",list);
  methodCombo.setVisible(false);
  keyFileText=new LabelledText(sftpCom,"String_Node_Str",true);
  keyPasswordText=new LabelledText(sftpCom,"String_Node_Str",true);
  keyFileText.setVisible(false);
  keyPasswordText.setVisible(false);
  proxyCom=new Composite(buildGroup,SWT.NONE);
  proxyCom.setLayout(layoutGroup);
  proxyCom.setLayoutData(gridData);
  useSocksBut=new Button(proxyCom,SWT.CHECK);
  useSocksBut.setText(Messages.getString("String_Node_Str"));
  Composite c=new Composite(proxyCom,SWT.NONE);
  proxyHostText=new LabelledText(proxyCom,"String_Node_Str",true);
  proxyPortText=new LabelledText(proxyCom,"String_Node_Str",true);
  proxyUsernameText=new LabelledText(proxyCom,"String_Node_Str",true);
  proxyPasswordText=new LabelledText(proxyCom,"String_Node_Str",true);
  proxyHostText.setVisible(false);
  proxyPortText.setVisible(false);
  proxyUsernameText.setVisible(false);
  proxyPasswordText.setVisible(false);
  checkFieldsValue();
}

Fixed version (ground truth):
@Override protected void addFields(){
  Group ftpParameterGroup=new Group(this,SWT.NULL);
  ftpParameterGroup.setText("String_Node_Str");
  GridLayout layoutGroup=new GridLayout();
  layoutGroup.numColumns=2;
  ftpParameterGroup.setLayout(layoutGroup);
  GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
  ftpParameterGroup.setLayoutData(gridData);
  ftpUsernameText=new LabelledText(ftpParameterGroup,"String_Node_Str",true);
  ftpPasswordText=new LabelledText(ftpParameterGroup,"String_Node_Str",1,SWT.BORDER | SWT.PASSWORD);
  ftpHostText=new LabelledText(ftpParameterGroup,"String_Node_Str",true);
  ftpPortText=new LabelledText(ftpParameterGroup,"String_Node_Str",true);
  Composite com=new Composite(ftpParameterGroup,SWT.NONE);
  layoutGroup=new GridLayout();
  layoutGroup.numColumns=2;
  com.setLayout(layoutGroup);
  List<String> codeList=new ArrayList<String>();
  codeList.add("String_Node_Str");
  codeList.add("String_Node_Str");
  codeList.add("String_Node_Str");
  encodeCombo=new LabelledCombo(com,"String_Node_Str","String_Node_Str",codeList);
  if (getConnection().getEcoding() == null || "String_Node_Str".equals(getConnection().getEcoding())) {
    encodeCombo.setText("String_Node_Str");
    getConnection().setEcoding(encodeCombo.getText());
  }
  customText=new Text(ftpParameterGroup,SWT.BORDER | SWT.SINGLE);
  GridData gd=new GridData(SWT.FILL,SWT.CENTER,true,false);
  gridData.horizontalSpan=1;
  customText.setLayoutData(gd);
  List<String> connList=new ArrayList<String>();
  connList.add("String_Node_Str");
  connList.add("String_Node_Str");
  connModelCombo=new LabelledCombo(ftpParameterGroup,Messages.getString("String_Node_Str"),"String_Node_Str",connList);
  if (getConnection().getMode() == null || "String_Node_Str".equals(getConnection().getMode())) {
    connModelCombo.setText(Messages.getString("String_Node_Str"));
    getConnection().setMode(connModelCombo.getText());
  }
  Group buildGroup=new Group(this,SWT.NULL);
  buildGroup.setText("String_Node_Str");
  layoutGroup=new GridLayout();
  layoutGroup.numColumns=1;
  buildGroup.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_BOTH);
  buildGroup.setLayoutData(gridData);
  sftpCom=new Composite(buildGroup,SWT.NONE);
  layoutGroup=new GridLayout();
  layoutGroup.numColumns=2;
  sftpCom.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_BOTH);
  sftpCom.setLayoutData(gridData);
  sftpSuppBut=new Button(sftpCom,SWT.CHECK);
  sftpSuppBut.setText(Messages.getString("String_Node_Str"));
  ftpsSuppBut=new Button(sftpCom,SWT.CHECK);
  ftpsSuppBut.setText(Messages.getString("String_Node_Str"));
  List<String> list=new ArrayList<String>();
  list.add("String_Node_Str");
  list.add("String_Node_Str");
  methodCombo=new LabelledCombo(sftpCom,Messages.getString("String_Node_Str"),"String_Node_Str",list);
  methodCombo.setVisible(false);
  privatekeyText=new LabelledText(sftpCom,"String_Node_Str",true);
  passphraseText=new LabelledText(sftpCom,"String_Node_Str",true);
  privatekeyText.setVisible(false);
  passphraseText.setVisible(false);
  keyFileText=new LabelledText(sftpCom,"String_Node_Str",true);
  keyPasswordText=new LabelledText(sftpCom,"String_Node_Str",true);
  keyFileText.setVisible(false);
  keyPasswordText.setVisible(false);
  proxyCom=new Composite(buildGroup,SWT.NONE);
  proxyCom.setLayout(layoutGroup);
  proxyCom.setLayoutData(gridData);
  useSocksBut=new Button(proxyCom,SWT.CHECK);
  useSocksBut.setText(Messages.getString("String_Node_Str"));
  Composite c=new Composite(proxyCom,SWT.NONE);
  proxyHostText=new LabelledText(proxyCom,"String_Node_Str",true);
  proxyPortText=new LabelledText(proxyCom,"String_Node_Str",true);
  proxyUsernameText=new LabelledText(proxyCom,"String_Node_Str",true);
  proxyPasswordText=new LabelledText(proxyCom,"String_Node_Str",true);
  proxyHostText.setVisible(false);
  proxyPortText.setVisible(false);
  proxyUsernameText.setVisible(false);
  proxyPasswordText.setVisible(false);
  checkFieldsValue();
}