Program: 118087
Project: 118087
Buggy source:
@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,Messages.getString("String_Node_Str"),true);
  ftpPasswordText=new LabelledText(ftpParameterGroup,Messages.getString("String_Node_Str"),1,SWT.BORDER | SWT.PASSWORD);
  ftpHostText=new LabelledText(ftpParameterGroup,Messages.getString("String_Node_Str"),true);
  ftpPortText=new LabelledText(ftpParameterGroup,Messages.getString("String_Node_Str"),true);
  Composite com=new Composite(ftpParameterGroup,SWT.NONE);
  layoutGroup=new GridLayout(2,false);
  com.setLayout(layoutGroup);
  List<String> codeList=new ArrayList<String>();
  codeList.add(ENCODING);
  codeList.add("String_Node_Str");
  codeList.add(CUSTOM);
  encodeCombo=new LabelledCombo(com,"String_Node_Str","String_Node_Str",codeList);
  if (getConnection().getEcoding() == null || "String_Node_Str".equals(getConnection().getEcoding())) {
    encodeCombo.setText(ENCODING);
    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());
  }
  buildGroup=new Group(this,SWT.NULL);
  buildGroup.setText("String_Node_Str");
  layoutGroup=new GridLayout(1,false);
  buildGroup.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  buildGroup.setLayoutData(gridData);
  Composite checkButtonCom=new Composite(buildGroup,SWT.NONE);
  layoutGroup=new GridLayout(2,false);
  checkButtonCom.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  checkButtonCom.setLayoutData(gridData);
  sftpSuppBut=new Button(checkButtonCom,SWT.CHECK);
  sftpSuppBut.setText(Messages.getString("String_Node_Str"));
  ftpsSuppBut=new Button(checkButtonCom,SWT.CHECK);
  ftpsSuppBut.setText(Messages.getString("String_Node_Str"));
  String[] methodComboStr={PUBLIC_KEY,PASSWORD};
  tetsCom=new Composite(buildGroup,SWT.NONE);
  layoutGroup=new GridLayout(1,false);
  tetsCom.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  tetsCom.setLayoutData(gridData);
  sftpChildCom=new Composite(tetsCom,SWT.NONE);
  layoutGroup=new GridLayout(3,false);
  sftpChildCom.setLayout(layoutGroup);
  sftpChildComGridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.minimumWidth=300;
  gridData.minimumHeight=120;
  gridData.widthHint=300;
  gridData.heightHint=110;
  sftpChildCom.setLayoutData(sftpChildComGridData);
  methodCombo=new LabelledCombo(sftpChildCom,Messages.getString("String_Node_Str"),"String_Node_Str",methodComboStr,2,false,SWT.NONE);
  String[] extensions={"String_Node_Str"};
  privatekeyText=new LabelledFileField(sftpChildCom,Messages.getString("String_Node_Str"),extensions);
  passphraseText=new LabelledText(sftpChildCom,Messages.getString("String_Node_Str"),1,SWT.BORDER | SWT.PASSWORD);
  ftpsChildCom=new Composite(tetsCom,SWT.NONE);
  layoutGroup=new GridLayout(3,false);
  ftpsChildCom.setLayout(layoutGroup);
  ftpsChildComGridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.minimumWidth=300;
  gridData.minimumHeight=120;
  gridData.widthHint=300;
  gridData.heightHint=90;
  ftpsChildCom.setLayoutData(ftpsChildComGridData);
  keyFileText=new LabelledFileField(ftpsChildCom,Messages.getString("String_Node_Str"),extensions);
  keyPasswordText=new LabelledText(ftpsChildCom,Messages.getString("String_Node_Str"),1,SWT.BORDER | SWT.PASSWORD);
  proxyCom=new Composite(buildGroup,SWT.NONE);
  layoutGroup=new GridLayout(1,false);
  proxyCom.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  proxyCom.setLayoutData(gridData);
  useSocksBut=new Button(proxyCom,SWT.CHECK);
  useSocksBut.setText(Messages.getString("String_Node_Str"));
  proxyChildCom=new Composite(proxyCom,SWT.NONE);
  layoutGroup=new GridLayout(2,false);
  proxyChildCom.setLayout(layoutGroup);
  proxyChildComGridData=new GridData(GridData.FILL_HORIZONTAL);
  proxyChildCom.setLayoutData(proxyChildComGridData);
  proxyHostText=new LabelledText(proxyChildCom,Messages.getString("String_Node_Str"),true);
  proxyPortText=new LabelledText(proxyChildCom,Messages.getString("String_Node_Str"),true);
  proxyUsernameText=new LabelledText(proxyChildCom,Messages.getString("String_Node_Str"),true);
  proxyPasswordText=new LabelledText(proxyChildCom,Messages.getString("String_Node_Str"),1,SWT.BORDER | SWT.PASSWORD);
  checkFieldsValue();
}

Fixed version (ground truth):
@Override protected void addFields(){
  Group ftpParameterGroup=new Group(this,SWT.NULL);
  ftpParameterGroup.setText("String_Node_Str");
  GridLayout ftpParameterLayout=new GridLayout();
  ftpParameterLayout.numColumns=2;
  ftpParameterGroup.setLayout(ftpParameterLayout);
  GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
  ftpParameterGroup.setLayoutData(gridData);
  ftpUsernameText=new LabelledText(ftpParameterGroup,Messages.getString("String_Node_Str"),true);
  ftpPasswordText=new LabelledText(ftpParameterGroup,Messages.getString("String_Node_Str"),1,SWT.BORDER | SWT.PASSWORD);
  ftpHostText=new LabelledText(ftpParameterGroup,Messages.getString("String_Node_Str"),true);
  ftpPortText=new LabelledText(ftpParameterGroup,Messages.getString("String_Node_Str"),true);
  encodingComp=new Composite(ftpParameterGroup,SWT.NONE);
  GridData encodingCompGD=new GridData(SWT.FILL,SWT.CENTER,true,false);
  encodingCompGD.horizontalSpan=2;
  encodingComp.setLayoutData(encodingCompGD);
  GridLayout encodingCompLayout=new GridLayout(4,false);
  encodingCompLayout.marginWidth=0;
  encodingComp.setLayout(encodingCompLayout);
  fnEncodingBtn=new Button(encodingComp,SWT.CHECK);
  fnEncodingBtn.setText("String_Node_Str");
  fnEncodingBtnGD=new GridData(SWT.BEGINNING,SWT.CENTER,false,false);
  fnEncodingBtn.setLayoutData(fnEncodingBtnGD);
  List<String> codeList=new ArrayList<String>();
  codeList.add(ENCODING);
  codeList.add("String_Node_Str");
  codeList.add(CUSTOM);
  encodeCombo=new LabelledCombo(encodingComp,"String_Node_Str","String_Node_Str",codeList);
  if (getConnection().getEcoding() == null || "String_Node_Str".equals(getConnection().getEcoding())) {
    encodeCombo.setText(ENCODING);
    getConnection().setEcoding(encodeCombo.getText());
  }
  customText=new Text(encodingComp,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());
  }
  buildGroup=new Group(this,SWT.NULL);
  buildGroup.setText("String_Node_Str");
  GridLayout layoutGroup=new GridLayout(1,false);
  buildGroup.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  buildGroup.setLayoutData(gridData);
  Composite checkButtonCom=new Composite(buildGroup,SWT.NONE);
  layoutGroup=new GridLayout(2,false);
  checkButtonCom.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  checkButtonCom.setLayoutData(gridData);
  sftpSuppBut=new Button(checkButtonCom,SWT.CHECK);
  sftpSuppBut.setText(Messages.getString("String_Node_Str"));
  ftpsSuppBut=new Button(checkButtonCom,SWT.CHECK);
  ftpsSuppBut.setText(Messages.getString("String_Node_Str"));
  String[] methodComboStr={PUBLIC_KEY,PASSWORD};
  tetsCom=new Composite(buildGroup,SWT.NONE);
  layoutGroup=new GridLayout(1,false);
  tetsCom.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  tetsCom.setLayoutData(gridData);
  sftpChildCom=new Composite(tetsCom,SWT.NONE);
  layoutGroup=new GridLayout(3,false);
  sftpChildCom.setLayout(layoutGroup);
  sftpChildComGridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.minimumWidth=300;
  gridData.minimumHeight=120;
  gridData.widthHint=300;
  gridData.heightHint=110;
  sftpChildCom.setLayoutData(sftpChildComGridData);
  methodCombo=new LabelledCombo(sftpChildCom,Messages.getString("String_Node_Str"),"String_Node_Str",methodComboStr,2,false,SWT.NONE);
  String[] extensions={"String_Node_Str"};
  privatekeyText=new LabelledFileField(sftpChildCom,Messages.getString("String_Node_Str"),extensions);
  passphraseText=new LabelledText(sftpChildCom,Messages.getString("String_Node_Str"),1,SWT.BORDER | SWT.PASSWORD);
  ftpsChildCom=new Composite(tetsCom,SWT.NONE);
  layoutGroup=new GridLayout(3,false);
  ftpsChildCom.setLayout(layoutGroup);
  ftpsChildComGridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.minimumWidth=300;
  gridData.minimumHeight=120;
  gridData.widthHint=300;
  gridData.heightHint=90;
  ftpsChildCom.setLayoutData(ftpsChildComGridData);
  keyFileText=new LabelledFileField(ftpsChildCom,Messages.getString("String_Node_Str"),extensions);
  keyPasswordText=new LabelledText(ftpsChildCom,Messages.getString("String_Node_Str"),1,SWT.BORDER | SWT.PASSWORD);
  proxyCom=new Composite(buildGroup,SWT.NONE);
  layoutGroup=new GridLayout(1,false);
  proxyCom.setLayout(layoutGroup);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  proxyCom.setLayoutData(gridData);
  useSocksBut=new Button(proxyCom,SWT.CHECK);
  useSocksBut.setText(Messages.getString("String_Node_Str"));
  proxyChildCom=new Composite(proxyCom,SWT.NONE);
  layoutGroup=new GridLayout(2,false);
  proxyChildCom.setLayout(layoutGroup);
  proxyChildComGridData=new GridData(GridData.FILL_HORIZONTAL);
  proxyChildCom.setLayoutData(proxyChildComGridData);
  proxyHostText=new LabelledText(proxyChildCom,Messages.getString("String_Node_Str"),true);
  proxyPortText=new LabelledText(proxyChildCom,Messages.getString("String_Node_Str"),true);
  proxyUsernameText=new LabelledText(proxyChildCom,Messages.getString("String_Node_Str"),true);
  proxyPasswordText=new LabelledText(proxyChildCom,Messages.getString("String_Node_Str"),1,SWT.BORDER | SWT.PASSWORD);
  checkFieldsValue();
}