Program: 126184
Project: 126184
Buggy source:
/** 
 * add Controls of Group File File Settings.
 */
private void addFieldsListenersGroupFileSettings(){
  rowSeparatorCombo.addModifyListener(new ModifyListener(){
    public void modifyText(    final ModifyEvent e){
      if (!isContextMode()) {
        rowSeparatorManager();
      }
    }
  }
);
  fieldSeparatorText.addModifyListener(new ModifyListener(){
    public void modifyText(    final ModifyEvent e){
      if (!isContextMode()) {
        String value=getValidateFieldSeparator(fieldSeparatorText.getText());
        Point selection=fieldSeparatorText.getSelection();
        String temp=TalendQuoteUtils.addQuotes(value);
        if (!(temp.equals(fieldSeparatorText.getText()))) {
          fieldSeparatorText.setText(temp);
        }
        getConnection().setFieldSeparatorValue(temp);
        fieldSeparatorText.forceFocus();
        fieldSeparatorText.setSelection(selection.x);
        checkFieldsValue();
      }
    }
  }
);
  fieldSeparatorText.addKeyListener(new KeyAdapter(){
    @Override public void keyPressed(    KeyEvent e){
      if (isContextMode()) {
        e.doit=false;
      }
 else {
        e.doit=charIsAcceptedOnFieldSeparator(fieldSeparatorText.getText(),e.character,fieldSeparatorText.getSelection().x);
      }
    }
  }
);
  fieldSeparatorText.addFocusListener(new FocusAdapter(){
    @Override public void focusLost(    FocusEvent e){
      if (!isContextMode()) {
        String value=getValidateFieldSeparator(fieldSeparatorText.getText());
        value=removeInvalidEndComma(value);
        String temp=TalendQuoteUtils.addQuotes(value);
        if (!(temp.equals(fieldSeparatorText.getText()))) {
          fieldSeparatorText.setText(temp);
        }
        getConnection().setFieldSeparatorValue(temp);
        checkFieldsValue();
      }
    }
  }
);
  rowSeparatorText.addModifyListener(new ModifyListener(){
    public void modifyText(    final ModifyEvent e){
      if (!isContextMode()) {
        getConnection().setRowSeparatorValue(rowSeparatorText.getText());
        checkFieldsValue();
      }
    }
  }
);
  rowSeparatorText.addKeyListener(new KeyAdapter(){
    @Override public void keyPressed(    KeyEvent e){
    }
  }
);
}

Fixed version (ground truth):
/** 
 * add Controls of Group File File Settings.
 */
private void addFieldsListenersGroupFileSettings(){
  rowSeparatorCombo.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      if (!isContextMode()) {
        rowSeparatorManager();
      }
    }
  }
);
  fieldSeparatorText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      if (!isContextMode()) {
        String value=getValidateFieldSeparator(fieldSeparatorText.getText());
        Point selection=fieldSeparatorText.getSelection();
        String temp=TalendQuoteUtils.addQuotes(value);
        if (!(temp.equals(fieldSeparatorText.getText()))) {
          fieldSeparatorText.setText(temp);
        }
        getConnection().setFieldSeparatorValue(temp);
        fieldSeparatorText.forceFocus();
        fieldSeparatorText.setSelection(selection.x);
        checkFieldsValue();
      }
    }
  }
);
  fieldSeparatorText.addKeyListener(new KeyAdapter(){
    @Override public void keyPressed(    KeyEvent e){
      if (isContextMode()) {
        e.doit=false;
      }
 else {
        e.doit=charIsAcceptedOnFieldSeparator(fieldSeparatorText.getText(),e.character,fieldSeparatorText.getSelection().x);
      }
    }
  }
);
  fieldSeparatorText.addFocusListener(new FocusAdapter(){
    @Override public void focusLost(    FocusEvent e){
      if (!isContextMode()) {
        String value=getValidateFieldSeparator(fieldSeparatorText.getText());
        value=removeInvalidEndComma(value);
        String temp=TalendQuoteUtils.addQuotes(value);
        if (!(temp.equals(fieldSeparatorText.getText()))) {
          fieldSeparatorText.setText(temp);
        }
        getConnection().setFieldSeparatorValue(temp);
        checkFieldsValue();
      }
    }
  }
);
  rowSeparatorText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    final ModifyEvent e){
      if (!isContextMode()) {
        getConnection().setRowSeparatorValue(rowSeparatorText.getText());
        checkFieldsValue();
      }
    }
  }
);
  rowSeparatorText.addKeyListener(new KeyAdapter(){
    @Override public void keyPressed(    KeyEvent e){
    }
  }
);
}