Program: 122585
Project: 122585
Buggy source:
protected void createFiltersToolItems(){
  boolean isErrorReject=false;
  if (!(getDataMapTable() instanceof OutputTable)) {
    return;
  }
  isErrorReject=((OutputTable)getDataMapTable()).isErrorRejectTable();
  condensedItem=new ToolItem(toolBarActions,SWT.CHECK);
  condensedItem.setEnabled(!mapperManager.componentIsReadOnly() && !isErrorReject);
  condensedItem.setSelection(((OutputTable)abstractDataMapTable).isActivateCondensedTool());
  condensedItem.setToolTipText("String_Node_Str");
  initCondensedItemImage();
  condensedItem.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      ((OutputTable)abstractDataMapTable).setActivateCondensedTool(condensedItem.getSelection());
      showTableMapSetting(condensedItem.getSelection());
    }
  }
);
  if (mapperManager.isAdvancedMap()) {
    createActivateFilterCheck();
  }
 else {
    ToolItem addFilterButton=new ToolItem(toolBarActions,SWT.PUSH);
    addFilterButton.setEnabled(!mapperManager.componentIsReadOnly() && !isErrorReject);
    addFilterButton.setToolTipText(Messages.getString("String_Node_Str"));
    addFilterButton.setImage(ImageProviderMapper.getImage(ImageInfo.ADD_FILTER_ICON));
    if (addFilterButton != null) {
      addFilterButton.addSelectionListener(new SelectionListener(){
        public void widgetDefaultSelected(        SelectionEvent e){
        }
        public void widgetSelected(        SelectionEvent e){
          Table tableConstraints=tableViewerCreatorForFilters.getTable();
          int index=tableConstraints.getItemCount();
          int[] selection=tableViewerCreatorForFilters.getTable().getSelectionIndices();
          if (selection.length > 0) {
            index=selection[selection.length - 1] + 1;
          }
          mapperManager.addNewFilterEntry(DataMapTableView.this,"String_Node_Str" + ++constraintCounter,index);
          updateGridDataHeightForTableConstraints();
          DataMapTableView.this.changeSize(DataMapTableView.this.getPreferredSize(false,true,true),true,true);
          tableViewerCreatorForFilters.getTableViewer().refresh();
          mapperManager.getUiManager().refreshBackground(true,false);
          showTableConstraints(true);
          changeMinimizeState(false);
          tableViewerCreatorForFilters.layout();
        }
      }
);
    }
  }
}

Fixed version (ground truth):
protected void createFiltersToolItems(){
  boolean isErrorReject=false;
  if (!(getDataMapTable() instanceof OutputTable)) {
    return;
  }
  isErrorReject=((OutputTable)getDataMapTable()).isErrorRejectTable();
  condensedItem=new ToolItem(toolBarActions,SWT.CHECK);
  condensedItem.setEnabled(!isErrorReject);
  condensedItem.setSelection(((OutputTable)abstractDataMapTable).isActivateCondensedTool());
  condensedItem.setToolTipText("String_Node_Str");
  initCondensedItemImage();
  condensedItem.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      ((OutputTable)abstractDataMapTable).setActivateCondensedTool(condensedItem.getSelection());
      showTableMapSetting(condensedItem.getSelection());
    }
  }
);
  if (mapperManager.isAdvancedMap()) {
    createActivateFilterCheck();
  }
 else {
    ToolItem addFilterButton=new ToolItem(toolBarActions,SWT.PUSH);
    addFilterButton.setEnabled(!mapperManager.componentIsReadOnly() && !isErrorReject);
    addFilterButton.setToolTipText(Messages.getString("String_Node_Str"));
    addFilterButton.setImage(ImageProviderMapper.getImage(ImageInfo.ADD_FILTER_ICON));
    if (addFilterButton != null) {
      addFilterButton.addSelectionListener(new SelectionListener(){
        public void widgetDefaultSelected(        SelectionEvent e){
        }
        public void widgetSelected(        SelectionEvent e){
          Table tableConstraints=tableViewerCreatorForFilters.getTable();
          int index=tableConstraints.getItemCount();
          int[] selection=tableViewerCreatorForFilters.getTable().getSelectionIndices();
          if (selection.length > 0) {
            index=selection[selection.length - 1] + 1;
          }
          mapperManager.addNewFilterEntry(DataMapTableView.this,"String_Node_Str" + ++constraintCounter,index);
          updateGridDataHeightForTableConstraints();
          DataMapTableView.this.changeSize(DataMapTableView.this.getPreferredSize(false,true,true),true,true);
          tableViewerCreatorForFilters.getTableViewer().refresh();
          mapperManager.getUiManager().refreshBackground(true,false);
          showTableConstraints(true);
          changeMinimizeState(false);
          tableViewerCreatorForFilters.layout();
        }
      }
);
    }
  }
}