Program: 125765
Project: 125765
Buggy source:
/** 
 * RetreiveShema connection width value of nameText, serverText, loginText, passwordText, tableCombo.
 */
private void pressRetreiveSchemaButton(){
  boolean checkConnectionIsDone=managerConnection.check(getIMetadataConnection());
  if (!checkConnectionIsDone) {
    adaptFormToCheckConnection();
    updateStatus(IStatus.WARNING,Messages.getString("String_Node_Str"));
    new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),managerConnection.getMessageException());
  }
 else {
    boolean doit=true;
    if (tableEditorView.getMetadataEditor().getBeanCount() > 0) {
      doit=MessageDialog.openConfirm(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    }
    if (doit) {
      tableString=tableCombo.getText();
      if (tableCombo.isEnabled() && tableCombo.getCombo().indexOf(tableString) == -1) {
        MessageDialog.openError(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
        return;
      }
      List<TdColumn> metadataColumns=new ArrayList<TdColumn>();
      if (useProvider()) {
        metadataColumns=provider.returnMetadataColumnsFromTable(tableString,metadataconnection);
      }
 else {
        metadataColumns=ExtractMetaDataFromDataBase.returnMetadataColumnsFormTable(metadataconnection,tableString);
      }
      tableEditorView.getMetadataEditor().removeAll();
      List<MetadataColumn> metadataColumnsValid=new ArrayList<MetadataColumn>();
      Iterator iterate=metadataColumns.iterator();
      while (iterate.hasNext()) {
        MetadataColumn metadataColumn=(MetadataColumn)iterate.next();
        if (metadataColumn.getTalendType().equals(JavaTypesManager.DATE.getId()) || metadataColumn.getTalendType().equals(PerlTypesManager.DATE)) {
          if ("String_Node_Str".equals(metadataColumn.getPattern())) {
            metadataColumn.setPattern(TalendQuoteUtils.addQuotes("String_Node_Str"));
          }
        }
        String columnLabel=metadataColumn.getLabel();
        metadataColumn.setLabel(tableEditorView.getMetadataEditor().getNextGeneratedColumnName(columnLabel));
        metadataColumnsValid.add(metadataColumn);
      }
      removeDoubleQuotes(metadataColumnsValid);
      tableEditorView.getMetadataEditor().addAll(metadataColumnsValid);
    }
  }
  updateRetreiveSchemaButton();
  changeTableNavigatorStatus(checkFieldsValue());
}

Fixed version (ground truth):
/** 
 * RetreiveShema connection width value of nameText, serverText, loginText, passwordText, tableCombo.
 */
private void pressRetreiveSchemaButton(){
  boolean checkConnectionIsDone=managerConnection.check(getIMetadataConnection());
  if (!checkConnectionIsDone) {
    adaptFormToCheckConnection();
    updateStatus(IStatus.WARNING,Messages.getString("String_Node_Str"));
    new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),managerConnection.getMessageException());
  }
 else {
    boolean doit=true;
    if (tableEditorView.getMetadataEditor().getBeanCount() > 0) {
      doit=MessageDialog.openConfirm(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    }
    if (doit) {
      tableString=tableCombo.getText();
      if (tableCombo.isEnabled() && tableCombo.getCombo().indexOf(tableString) == -1) {
        MessageDialog.openError(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
        return;
      }
      List<TdColumn> metadataColumns=new ArrayList<TdColumn>();
      if (useProvider()) {
        metadataColumns=provider.returnMetadataColumnsFromTable(tableString,metadataconnection);
      }
 else {
        metadataColumns=ExtractMetaDataFromDataBase.returnMetadataColumnsFormTable(metadataconnection,tableString);
      }
      tableEditorView.getMetadataEditor().removeAll();
      List<MetadataColumn> metadataColumnsValid=new ArrayList<MetadataColumn>();
      Iterator iterate=metadataColumns.iterator();
      while (iterate.hasNext()) {
        MetadataColumn metadataColumn=(MetadataColumn)iterate.next();
        if (metadataColumn.getTalendType().equals(JavaTypesManager.DATE.getId()) || metadataColumn.getTalendType().equals(PerlTypesManager.DATE)) {
          if ("String_Node_Str".equals(metadataColumn.getPattern())) {
            metadataColumn.setPattern(TalendQuoteUtils.addQuotes("String_Node_Str"));
            if (EDatabaseTypeName.MSSQL.getDisplayName().equals(metadataconnection.getDbType())) {
              if ("String_Node_Str".equals(metadataColumn.getSourceType())) {
                metadataColumn.setPattern(TalendQuoteUtils.addQuotes("String_Node_Str"));
              }
            }
          }
        }
        String columnLabel=metadataColumn.getLabel();
        metadataColumn.setLabel(tableEditorView.getMetadataEditor().getNextGeneratedColumnName(columnLabel));
        metadataColumnsValid.add(metadataColumn);
      }
      removeDoubleQuotes(metadataColumnsValid);
      tableEditorView.getMetadataEditor().addAll(metadataColumnsValid);
    }
  }
  updateRetreiveSchemaButton();
  changeTableNavigatorStatus(checkFieldsValue());
}