Program: 139920
Project: 139920
Buggy source:
private void addItemElements(final List<Column> columns,int index){
  for (int i=0; i < columns.size(); i++) {
    final TdColumn column=(TdColumn)columns.get(i);
    final TreeItem treeItem=new TreeItem(tree,SWT.NONE,index);
    String columnName=column.getName();
    treeItem.setImage(ImageLib.getImage(ImageLib.TD_COLUMN));
    treeItem.setText(0,columnName != null ? columnName + PluginConstant.SPACE_STRING + PluginConstant.PARENTHESIS_LEFT+ column.getSqlDataType().getName()+ PluginConstant.PARENTHESIS_RIGHT : "String_Node_Str");
    treeItem.setData(COLUMN_INDICATOR_KEY,column);
    TreeEditor comboEditor=new TreeEditor(tree);
    tree.setData(DefaultMessagesImpl.getString("String_Node_Str"),comboEditor);
    final CCombo combo=new CCombo(tree,SWT.BORDER);
    for (    DataminingType type : DataminingType.values()) {
      combo.add(type.getLiteral());
    }
    DataminingType dataminingType=MetadataHelper.getDataminingType(column);
    if (dataminingType == null) {
      dataminingType=MetadataHelper.getDefaultDataminingType(column.getJavaType());
    }
    if (dataminingType == null) {
      combo.select(0);
    }
 else {
      combo.setText(dataminingType.getLiteral());
    }
    MetadataHelper.setDataminingType(DataminingType.get(combo.getText()),column);
    /** 
 * DOC zhaoxinyi AnalysisColumnNominalIntervalTreeViewer class global comment. Detailled comment
 */
class Selection extends SelectionAdapter {
      public void widgetSelected(      SelectionEvent e){
        MetadataHelper.setDataminingType(DataminingType.get(combo.getText()),column);
        setDirty(true);
      }
    }
    combo.addSelectionListener(new Selection());
    combo.setEditable(false);
    comboEditor.minimumWidth=WIDTH1_CELL;
    comboEditor.setEditor(combo,treeItem,1);
    TreeEditor delLabelEditor=new TreeEditor(tree);
    Label delLabel=new Label(tree,SWT.NONE);
    delLabel.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
    delLabel.setImage(ImageLib.getImage(ImageLib.DELETE_ACTION));
    delLabel.setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
    delLabel.pack();
    delLabel.addMouseListener(new MouseAdapter(){
      @Override public void mouseDown(      MouseEvent e){
        deleteColumnItems(column);
        removeItemBranch(treeItem);
      }
    }
);
    delLabelEditor.minimumWidth=delLabel.getImage().getBounds().width;
    delLabelEditor.horizontalAlignment=SWT.CENTER;
    delLabelEditor.setEditor(delLabel,treeItem,2);
    treeItem.setData(ITEM_EDITOR_KEY,new TreeEditor[]{comboEditor,delLabelEditor});
    delLabelEditor.layout();
    treeItem.setExpanded(true);
  }
  tree.layout();
  tree.redraw();
  this.setDirty(true);
  tree.forceFocus();
}

Fixed version (ground truth):
private void addItemElements(final List<Column> columns,int index){
  for (int i=0; i < columns.size(); i++) {
    final TdColumn column=(TdColumn)columns.get(i);
    final TreeItem treeItem=new TreeItem(tree,SWT.NONE,index);
    columnSetMultiValueList.add(index,column);
    String columnName=column.getName();
    treeItem.setImage(ImageLib.getImage(ImageLib.TD_COLUMN));
    treeItem.setText(0,columnName != null ? columnName + PluginConstant.SPACE_STRING + PluginConstant.PARENTHESIS_LEFT+ column.getSqlDataType().getName()+ PluginConstant.PARENTHESIS_RIGHT : "String_Node_Str");
    treeItem.setData(COLUMN_INDICATOR_KEY,column);
    TreeEditor comboEditor=new TreeEditor(tree);
    tree.setData(DefaultMessagesImpl.getString("String_Node_Str"),comboEditor);
    final CCombo combo=new CCombo(tree,SWT.BORDER);
    for (    DataminingType type : DataminingType.values()) {
      combo.add(type.getLiteral());
    }
    DataminingType dataminingType=MetadataHelper.getDataminingType(column);
    if (dataminingType == null) {
      dataminingType=MetadataHelper.getDefaultDataminingType(column.getJavaType());
    }
    if (dataminingType == null) {
      combo.select(0);
    }
 else {
      combo.setText(dataminingType.getLiteral());
    }
    MetadataHelper.setDataminingType(DataminingType.get(combo.getText()),column);
    /** 
 * DOC zhaoxinyi AnalysisColumnNominalIntervalTreeViewer class global comment. Detailled comment
 */
class Selection extends SelectionAdapter {
      public void widgetSelected(      SelectionEvent e){
        MetadataHelper.setDataminingType(DataminingType.get(combo.getText()),column);
        setDirty(true);
      }
    }
    combo.addSelectionListener(new Selection());
    combo.setEditable(false);
    comboEditor.minimumWidth=WIDTH1_CELL;
    comboEditor.setEditor(combo,treeItem,1);
    TreeEditor delLabelEditor=new TreeEditor(tree);
    Label delLabel=new Label(tree,SWT.NONE);
    delLabel.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
    delLabel.setImage(ImageLib.getImage(ImageLib.DELETE_ACTION));
    delLabel.setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
    delLabel.pack();
    delLabel.addMouseListener(new MouseAdapter(){
      @Override public void mouseDown(      MouseEvent e){
        deleteColumnItems(column);
        removeItemBranch(treeItem);
      }
    }
);
    delLabelEditor.minimumWidth=delLabel.getImage().getBounds().width;
    delLabelEditor.horizontalAlignment=SWT.CENTER;
    delLabelEditor.setEditor(delLabel,treeItem,2);
    treeItem.setData(ITEM_EDITOR_KEY,new TreeEditor[]{comboEditor,delLabelEditor});
    delLabelEditor.layout();
    treeItem.setExpanded(true);
  }
  tree.layout();
  tree.redraw();
  this.setDirty(true);
  tree.forceFocus();
}