Program: 127497
Project: 127497
Buggy source:
/** 
 * DOC amaumont Comment method "configurePatternColumn".
 * @param tableViewerCreator
 */
protected void configurePatternColumn(TableViewerCreator<B> tableViewerCreator){
  if (LanguageManager.getCurrentLanguage() == ECodeLanguage.JAVA && showPatternColumn) {
    final TableViewerCreatorColumn column=new TableViewerCreatorColumn(tableViewerCreator);
    String patternTitle=Messages.getString("String_Node_Str");
    column.setTitle(patternTitle);
    column.setToolTipHeader(patternTitle);
    column.setId(ID_COLUMN_PATTERN);
    column.setBeanPropertyAccessors(getPatternAccessor());
    column.setModifiable(!isReadOnly());
    column.setWeight(16);
    final ColumnCellModifier columnCellModifier=new ColumnCellModifier(column){
      public boolean canModify(      Object bean){
        boolean typeIsDate=currentBeanHasJavaDateType(bean) && !isReadOnly();
        boolean typeIsDynamic=isCurrentBeanHasType(bean,"String_Node_Str") && !isReadOnly();
        return typeIsDate || typeIsDynamic;
      }
    }
;
    column.setColorProvider(new IColumnColorProvider(){
      public Color getBackgroundColor(      Object bean){
        if (!columnCellModifier.canModify(bean)) {
          return READONLY_CELL_BG_COLOR;
        }
        return null;
      }
      public Color getForegroundColor(      Object bean){
        return null;
      }
    }
);
    column.setLabelProvider(new IColumnLabelProvider(){
      public String getLabel(      Object bean){
        if (!currentBeanHasJavaDateType(bean) && !isCurrentBeanHasType(bean,"String_Node_Str")) {
          return "String_Node_Str";
        }
        return null;
      }
    }
);
    column.setColumnCellModifier(columnCellModifier);
    JavaSimpleDateFormatProposalProvider proposalProvider=new JavaSimpleDateFormatProposalProvider();
    TextCellEditorWithProposal patternCellEditor=new TextCellEditorWithProposal(tableViewerCreator.getTable(),column);
    ContentProposalAdapterExtended contentProposalAdapter=patternCellEditor.getContentProposalAdapter();
    contentProposalAdapter.setFilterStyle(ContentProposalAdapterExtended.FILTER_NONE);
    contentProposalAdapter.setProposalAcceptanceStyle(ContentProposalAdapterExtended.PROPOSAL_INSERT);
    patternCellEditor.setContentProposalProvider(proposalProvider);
    column.setCellEditor(patternCellEditor,CellEditorValueAdapterFactory.getNullToEmptyStringTextAdapater());
  }
}

Fixed version (ground truth):
/** 
 * DOC amaumont Comment method "configurePatternColumn".
 * @param tableViewerCreator
 */
protected void configurePatternColumn(TableViewerCreator<B> tableViewerCreator){
  if (LanguageManager.getCurrentLanguage() == ECodeLanguage.JAVA && showPatternColumn) {
    final TableViewerCreatorColumn column=new TableViewerCreatorColumn(tableViewerCreator);
    String patternTitle=Messages.getString("String_Node_Str");
    column.setTitle(patternTitle);
    column.setToolTipHeader(patternTitle);
    column.setId(ID_COLUMN_PATTERN);
    column.setBeanPropertyAccessors(getPatternAccessor());
    column.setModifiable(!isReadOnly());
    column.setWeight(16);
    final ColumnCellModifier columnCellModifier=new ColumnCellModifier(column){
      @Override public boolean canModify(      Object bean){
        boolean typeIsDate=currentBeanHasJavaDateType(bean) && !isReadOnly();
        boolean typeIsDynamic=isCurrentBeanHasType(bean,"String_Node_Str") && !isReadOnly();
        return typeIsDate || typeIsDynamic;
      }
    }
;
    column.setColorProvider(new IColumnColorProvider(){
      public Color getBackgroundColor(      Object bean){
        if (!columnCellModifier.canModify(bean)) {
          return READONLY_CELL_BG_COLOR;
        }
        return null;
      }
      public Color getForegroundColor(      Object bean){
        return null;
      }
    }
);
    column.setLabelProvider(new IColumnLabelProvider(){
      public String getLabel(      Object bean){
        if (!currentBeanHasJavaDateType(bean) && !isCurrentBeanHasType(bean,"String_Node_Str")) {
          return "String_Node_Str";
        }
        return null;
      }
    }
);
    column.setColumnCellModifier(columnCellModifier);
    JavaSimpleDateFormatProposalProvider proposalProvider=new JavaSimpleDateFormatProposalProvider();
    TextCellEditorWithProposal patternCellEditor=new TextCellEditorWithProposal(tableViewerCreator.getTable(),column);
    ContentProposalAdapterExtended contentProposalAdapter=patternCellEditor.getContentProposalAdapter();
    contentProposalAdapter.setFilterStyle(ContentProposalAdapterExtended.FILTER_NONE);
    contentProposalAdapter.setProposalAcceptanceStyle(ContentProposalAdapterExtended.PROPOSAL_INSERT);
    patternCellEditor.setContentProposalProvider(proposalProvider);
    column.setCellEditor(patternCellEditor,CellEditorValueAdapterFactory.getNullToEmptyStringTextAdapater());
  }
}