Program: 138376
Project: 138376
Buggy source:
private Section createAllMatchPart(Composite parentComp,String title,AllMatchIndicator matchIndicator){
  Section section=createSection(form,parentComp,title,null);
  section.setLayoutData(new GridData(GridData.FILL_BOTH));
  Composite sectionClient=toolkit.createComposite(section);
  sectionClient.setLayout(new GridLayout(2,false));
  sectionClient.setLayoutData(new GridData(GridData.FILL_BOTH));
  GridDataFactory.fillDefaults().align(SWT.FILL,SWT.TOP).applyTo(sectionClient);
  List<IndicatorUnit> units=new ArrayList<IndicatorUnit>();
  units.add(new IndicatorUnit(IndicatorEnum.AllMatchIndicatorEnum,allMatchIndicator,null));
  EIndicatorChartType matchingType=EIndicatorChartType.PATTERN_MATCHING;
  IChartTypeStates chartTypeState=ChartTypeStatesOperator.getChartState(matchingType,units);
  ChartWithData chartData=new ChartWithData(matchingType,chartTypeState.getChart(),chartTypeState.getDataEntity());
  TableViewer tableviewer=chartTypeState.getTableForm(sectionClient);
  tableviewer.setInput(chartData);
  TableUtils.addTooltipOnTableItem(tableviewer.getTable());
  ChartTableFactory.addMenuAndTip(tableviewer,chartTypeState.getDataExplorer(),masterPage.getAnalysis());
  if (!EditorPreferencePage.isHideGraphics()) {
    JFreeChart chart=chartTypeState.getChart();
    ChartDecorator.decorate(chart);
    if (chart != null) {
      ChartComposite cc=new ChartComposite(sectionClient,SWT.NONE,chart,true);
      GridData gd=new GridData();
      gd.widthHint=PluginConstant.CHART_STANDARD_WIDHT;
      gd.heightHint=PluginConstant.CHART_STANDARD_HEIGHT;
      cc.setLayoutData(gd);
    }
  }
  section.setClient(sectionClient);
  return section;
}

Fixed version (ground truth):
private Section createAllMatchPart(Composite parentComp,String title,AllMatchIndicator matchIndicator){
  Section section=createSection(form,parentComp,title,null);
  section.setLayoutData(new GridData(GridData.FILL_BOTH));
  Composite sectionClient=toolkit.createComposite(section);
  sectionClient.setLayout(new GridLayout(2,false));
  sectionClient.setLayoutData(new GridData(GridData.FILL_BOTH));
  GridDataFactory.fillDefaults().align(SWT.FILL,SWT.TOP).applyTo(sectionClient);
  List<IndicatorUnit> units=new ArrayList<IndicatorUnit>();
  units.add(new IndicatorUnit(IndicatorEnum.AllMatchIndicatorEnum,allMatchIndicator,null));
  EIndicatorChartType matchingType=EIndicatorChartType.PATTERN_MATCHING;
  IChartTypeStates chartTypeState=ChartTypeStatesOperator.getChartState(matchingType,units);
  ChartWithData chartData=new ChartWithData(matchingType,chartTypeState.getChart(),chartTypeState.getDataEntity());
  TableViewer tableviewer=chartTypeState.getTableForm(sectionClient);
  tableviewer.setInput(chartData);
  TableUtils.addTooltipOnTableItem(tableviewer.getTable());
  if (masterPage.getAnalysis().getParameters().isStoreData()) {
    ChartTableFactory.addMenuAndTip(tableviewer,chartTypeState.getDataExplorer(),masterPage.getAnalysis());
  }
  if (!EditorPreferencePage.isHideGraphics()) {
    JFreeChart chart=chartTypeState.getChart();
    ChartDecorator.decorate(chart);
    if (chart != null) {
      ChartComposite cc=new ChartComposite(sectionClient,SWT.NONE,chart,true);
      GridData gd=new GridData();
      gd.widthHint=PluginConstant.CHART_STANDARD_WIDHT;
      gd.heightHint=PluginConstant.CHART_STANDARD_HEIGHT;
      cc.setLayoutData(gd);
    }
  }
  section.setClient(sectionClient);
  return section;
}