Program: 147649
Project: 147649
Buggy source:
private void createTable(Composite mainComp){
  int style=SWT.MULTI | SWT.BORDER | SWT.H_SCROLL| SWT.FULL_SELECTION| SWT.HIDE_SELECTION;
  resultsViewer=new TableViewer(mainComp,style);
  resultsViewer.getTable().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
  resultsViewer.getTable().setHeaderVisible(true);
  resultsViewer.getTable().setLinesVisible(true);
  resultsViewer.setContentProvider(getContentProvider());
  TableViewerColumn column=new TableViewerColumn(resultsViewer,SWT.NONE);
  column.getColumn().setText(Messages.UpdateAutoIncrementDialog_entity);
  column.getColumn().setResizable(true);
  column.getColumn().setWidth(300);
  column.setLabelProvider(new CustomedLabelProvider(0));
  column.setEditingSupport(null);
  column=new TableViewerColumn(resultsViewer,SWT.NONE);
  column.getColumn().setText(Messages.UpdateAutoIncrementDialog_value);
  column.getColumn().setResizable(true);
  column.getColumn().setWidth(100);
  column.setLabelProvider(new CustomedLabelProvider(1));
  column.setEditingSupport(new EditingSupport(resultsViewer){
    @Override protected CellEditor getCellEditor(    Object element){
      return new VerificableTextCellEditor(resultsViewer.getTable());
    }
    @Override protected boolean canEdit(    Object element){
      return true;
    }
    @Override protected Object getValue(    Object element){
      Line line=(Line)element;
      return line.keyValues.get(1).value;
    }
    @Override protected void setValue(    Object element,    Object value){
      Line line=(Line)element;
      line.keyValues.get(1).value=value.toString();
      resultsViewer.refresh();
    }
  }
);
  resultsViewer.addSelectionChangedListener(new ISelectionChangedListener(){
    public void selectionChanged(    SelectionChangedEvent event){
      IStructuredSelection selection=(IStructuredSelection)resultsViewer.getSelection();
      resetBtn.setEnabled(!selection.isEmpty());
    }
  }
);
  List<Line> lines=getInput();
  resultsViewer.setInput(lines);
}

Fixed version (ground truth):
private void createTable(Composite mainComp){
  int style=SWT.MULTI | SWT.BORDER | SWT.H_SCROLL| SWT.FULL_SELECTION;
  resultsViewer=new TableViewer(mainComp,style);
  resultsViewer.getTable().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
  resultsViewer.getTable().setHeaderVisible(true);
  resultsViewer.getTable().setLinesVisible(true);
  resultsViewer.setContentProvider(getContentProvider());
  TableViewerColumn column=new TableViewerColumn(resultsViewer,SWT.NONE);
  column.getColumn().setText(Messages.UpdateAutoIncrementDialog_entity);
  column.getColumn().setResizable(true);
  column.getColumn().setWidth(300);
  column.setLabelProvider(new CustomedLabelProvider(0));
  column.setEditingSupport(null);
  column=new TableViewerColumn(resultsViewer,SWT.NONE);
  column.getColumn().setText(Messages.UpdateAutoIncrementDialog_value);
  column.getColumn().setResizable(true);
  column.getColumn().setWidth(100);
  column.setLabelProvider(new CustomedLabelProvider(1));
  column.setEditingSupport(new EditingSupport(resultsViewer){
    @Override protected CellEditor getCellEditor(    Object element){
      return new VerificableTextCellEditor(resultsViewer.getTable());
    }
    @Override protected boolean canEdit(    Object element){
      return true;
    }
    @Override protected Object getValue(    Object element){
      Line line=(Line)element;
      return line.keyValues.get(1).value;
    }
    @Override protected void setValue(    Object element,    Object value){
      Line line=(Line)element;
      line.keyValues.get(1).value=value.toString();
      resultsViewer.refresh();
    }
  }
);
  resultsViewer.addSelectionChangedListener(new ISelectionChangedListener(){
    public void selectionChanged(    SelectionChangedEvent event){
      IStructuredSelection selection=(IStructuredSelection)resultsViewer.getSelection();
      resetBtn.setEnabled(!selection.isEmpty());
    }
  }
);
  List<Line> lines=getInput();
  resultsViewer.setInput(lines);
}