Program: 125561
Project: 125561
Buggy source:
@Override protected void adaptFormToEditable(){
  super.adaptFormToEditable();
  dbTypeCombo.setReadOnly(isContextMode());
  urlConnectionStringText.setEditable(!isContextMode());
  usernameText.setEditable(!isContextMode());
  passwordText.setEditable(!isContextMode());
  serverText.setEditable(!isContextMode());
  portText.setEditable(!isContextMode());
  sidOrDatabaseText.setEditable(!isContextMode());
  schemaText.setEditable(!isContextMode());
  dbVersionCombo.setReadOnly(isContextMode());
  datasourceText.setEditable(!isContextMode());
  additionParamText.setEditable(!isContextMode());
  fileField.setEditable(!isContextMode());
  directoryField.setEditable(!isContextMode());
  sqlSyntaxCombo.setReadOnly(isContextMode());
  stringQuoteText.setEditable(!isContextMode());
  nullCharText.setEditable(!isContextMode());
  button1.setEnabled(!isContextMode());
  button2.setEnabled(!isContextMode());
  generalJdbcUrlText.setEditable(!isContextMode());
  generalJdbcUserText.setEditable(!isContextMode());
  generalJdbcPasswordText.setEditable(!isContextMode());
  generalJdbcClassNameText.setEnabled(!isContextMode());
  generalJdbcDriverjarText.setEditable(!isContextMode());
  jDBCschemaText.setEditable(!isContextMode());
  generalMappingFileText.setEditable(!isContextMode());
  mappingFileText.setEditable(!isContextMode());
  if (isContextMode()) {
    passwordText.getTextControl().setEchoChar('\0');
    generalJdbcPasswordText.getTextControl().setEchoChar('\0');
    passwordTxt.getTextControl().setEchoChar('\0');
  }
 else {
    passwordText.getTextControl().setEchoChar('*');
    generalJdbcPasswordText.getTextControl().setEchoChar('*');
    passwordTxt.getTextControl().setEchoChar('*');
  }
  if (isHiveDBConnSelected()) {
    adaptHadoopLinkedPartToReadOnly();
    updateHadoopProperties(!isContextMode());
  }
  if (isHBaseDBConnSelected()) {
    adaptHbaseHadoopPartEditable();
    updateHadoopProperties(!isContextMode());
  }
}

Fixed version (ground truth):
@Override protected void adaptFormToEditable(){
  super.adaptFormToEditable();
  dbTypeCombo.setReadOnly(isContextMode());
  urlConnectionStringText.setEditable(!isContextMode());
  usernameText.setEditable(!isContextMode());
  passwordText.setEditable(!isContextMode());
  serverText.setEditable(!isContextMode());
  portText.setEditable(!isContextMode());
  sidOrDatabaseText.setEditable(!isContextMode());
  schemaText.setEditable(!isContextMode());
  dbVersionCombo.setReadOnly(isContextMode());
  datasourceText.setEditable(!isContextMode());
  additionParamText.setEditable(!isContextMode());
  fileField.setEditable(!isContextMode());
  directoryField.setEditable(!isContextMode());
  sqlSyntaxCombo.setReadOnly(isContextMode());
  stringQuoteText.setEditable(!isContextMode());
  nullCharText.setEditable(!isContextMode());
  button1.setEnabled(!isContextMode());
  button2.setEnabled(!isContextMode());
  generalJdbcUrlText.setEditable(!isContextMode());
  generalJdbcUserText.setEditable(!isContextMode());
  generalJdbcPasswordText.setEditable(!isContextMode());
  generalJdbcClassNameText.setEnabled(!isContextMode());
  generalJdbcDriverjarText.setEditable(!isContextMode());
  jDBCschemaText.setEditable(!isContextMode());
  generalMappingFileText.setEditable(!isContextMode());
  mappingFileText.setEditable(!isContextMode());
  if (isContextMode()) {
    passwordText.getTextControl().setEchoChar('\0');
    generalJdbcPasswordText.getTextControl().setEchoChar('\0');
    passwordTxt.getTextControl().setEchoChar('\0');
  }
 else {
    passwordText.getTextControl().setEchoChar('*');
    generalJdbcPasswordText.getTextControl().setEchoChar('*');
    passwordTxt.getTextControl().setEchoChar('*');
  }
  if (isHiveDBConnSelected()) {
    adaptHadoopLinkedPartToReadOnly();
    updateHadoopProperties(!isContextMode());
  }
  if (isHBaseDBConnSelected()) {
    adaptHbaseHadoopPartEditable();
    updateHadoopProperties(!isContextMode());
  }
  if (isImpalaDBConnSelected()) {
    adaptImpalaHadoopPartEditable();
    updateHadoopProperties(!isContextMode());
  }
}