Program: 118088
Project: 118088
Buggy source:
@Override protected void addUtilsButtonListeners(){
  sftpSuppBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=sftpSuppBut.getSelection();
      if (show) {
        sftpChildComGridData.exclude=false;
        ftpsChildComGridData.exclude=true;
      }
 else {
        sftpChildComGridData.exclude=true;
      }
      if (show && ftpsSuppBut.getSelection()) {
        getConnection().setFTPS(!show);
        ftpsSuppBut.setSelection(!show);
      }
      if (PUBLIC_KEY.equals(methodCombo.getText())) {
        privatekeyText.setVisible(show);
        passphraseText.setVisible(show);
      }
 else {
        privatekeyText.setVisible(false);
        passphraseText.setVisible(false);
      }
      connModelCombo.setEnabled(!show);
      getConnection().setSFTP(show);
      checkFieldsValue();
      sftpChildCom.setVisible(show);
      ftpsChildCom.setVisible(!show && ftpsSuppBut.getSelection());
      sftpChildCom.layout();
      ftpsChildCom.layout();
      tetsCom.layout();
      buildGroup.layout();
    }
  }
);
  ftpsSuppBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=ftpsSuppBut.getSelection();
      if (show) {
        ftpsChildComGridData.exclude=false;
        sftpChildComGridData.exclude=true;
      }
 else {
        ftpsChildComGridData.exclude=true;
      }
      if (show && sftpSuppBut.getSelection()) {
        getConnection().setSFTP(!show);
        sftpSuppBut.setSelection(!show);
      }
      connModelCombo.setEnabled(!show);
      getConnection().setFTPS(show);
      checkFieldsValue();
      sftpChildCom.setVisible(!show && sftpSuppBut.getSelection());
      ftpsChildCom.setVisible(show);
      sftpChildCom.layout();
      ftpsChildCom.layout();
      tetsCom.layout();
      buildGroup.layout();
    }
  }
);
  useSocksBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=useSocksBut.getSelection();
      if (show) {
        proxyChildComGridData.exclude=false;
      }
 else {
        proxyChildComGridData.exclude=true;
      }
      getConnection().setUsesocks(show);
      proxyChildCom.setVisible(show);
      proxyChildCom.layout();
      proxyCom.layout();
      tetsCom.layout();
      buildGroup.layout();
      layout();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void addUtilsButtonListeners(){
  sftpSuppBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=sftpSuppBut.getSelection();
      if (show) {
        sftpChildComGridData.exclude=false;
        fnEncodingBtnGD.exclude=false;
        ftpsChildComGridData.exclude=true;
        encodeCombo.setHideWidgets(!fnEncodingBtn.getSelection());
        customText.setVisible(fnEncodingBtn.getSelection() && CUSTOM.equals(getConnection().getEcoding()));
      }
 else {
        sftpChildComGridData.exclude=true;
        fnEncodingBtnGD.exclude=true;
        encodeCombo.setHideWidgets(false);
        customText.setVisible(CUSTOM.equals(getConnection().getEcoding()));
      }
      if (show && ftpsSuppBut.getSelection()) {
        getConnection().setFTPS(!show);
        ftpsSuppBut.setSelection(!show);
      }
      if (PUBLIC_KEY.equals(methodCombo.getText())) {
        privatekeyText.setVisible(show);
        passphraseText.setVisible(show);
      }
 else {
        privatekeyText.setVisible(false);
        passphraseText.setVisible(false);
      }
      connModelCombo.setEnabled(!show);
      getConnection().setSFTP(show);
      checkFieldsValue();
      sftpChildCom.setVisible(show);
      ftpsChildCom.setVisible(!show && ftpsSuppBut.getSelection());
      fnEncodingBtn.setVisible(show);
      encodingComp.layout();
      encodingComp.getParent().layout();
      sftpChildCom.layout();
      ftpsChildCom.layout();
      tetsCom.layout();
      buildGroup.layout();
    }
  }
);
  ftpsSuppBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=ftpsSuppBut.getSelection();
      if (show) {
        ftpsChildComGridData.exclude=false;
        sftpChildComGridData.exclude=true;
      }
 else {
        ftpsChildComGridData.exclude=true;
      }
      if (show && sftpSuppBut.getSelection()) {
        getConnection().setSFTP(!show);
        sftpSuppBut.setSelection(!show);
      }
      connModelCombo.setEnabled(!show);
      getConnection().setFTPS(show);
      checkFieldsValue();
      sftpChildCom.setVisible(!show && sftpSuppBut.getSelection());
      ftpsChildCom.setVisible(show);
      sftpChildCom.layout();
      ftpsChildCom.layout();
      tetsCom.layout();
      buildGroup.layout();
    }
  }
);
  useSocksBut.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=useSocksBut.getSelection();
      if (show) {
        proxyChildComGridData.exclude=false;
      }
 else {
        proxyChildComGridData.exclude=true;
      }
      getConnection().setUsesocks(show);
      proxyChildCom.setVisible(show);
      proxyChildCom.layout();
      proxyCom.layout();
      tetsCom.layout();
      buildGroup.layout();
      layout();
    }
  }
);
  fnEncodingBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      boolean show=fnEncodingBtn.getSelection();
      encodeCombo.setHideWidgets(!show);
      customText.setVisible(show && CUSTOM.equals(getConnection().getEcoding()));
      encodingComp.layout();
      getConnection().setUseFileNameEncoding(show && getConnection().isSFTP());
    }
  }
);
}