Program: 137335
Project: 137335
Buggy source:
@Override protected Composite createSubContent(Composite sectionClient){
  Composite parent=toolkit.createComposite(sectionClient);
  GridLayout tableLayout=new GridLayout(1,Boolean.TRUE);
  parent.setLayout(tableLayout);
  GridData gridData=new GridData(GridData.FILL_BOTH);
  parent.setLayoutData(gridData);
  ruleFolder=new CTabFolder(parent,SWT.MULTI | SWT.BORDER);
  ruleFolder.setRenderer(new MatchRuleCTabFolderRenderer(ruleFolder));
  ruleFolder.setMaximizeVisible(false);
  ruleFolder.setMinimizeVisible(false);
  ruleFolder.setTabHeight(35);
  ruleFolder.setSimple(false);
  ruleFolder.setDragDetect(true);
  GridData folderData=new GridData(GridData.FILL_BOTH);
  ruleFolder.setLayoutData(folderData);
  ruleFolder.addCTabFolder2Listener(new CTabFolder2Adapter(){
    @Override public void close(    CTabFolderEvent event){
      CTabItem tabItem=(CTabItem)event.item;
      deleteMatchRuleTab(tabItem);
    }
  }
);
  ruleFolder.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      fireSwitchRuleTabEvent();
    }
  }
);
  Composite com=toolkit.createComposite(ruleFolder);
  GridLayout comTableLayout=new GridLayout(2,Boolean.TRUE);
  com.setLayout(comTableLayout);
  Button editButton=new Button(com,SWT.FLAT | SWT.CENTER);
  editButton.setImage(EDIT_IMG);
  editButton.setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
  editButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      EditSortMatchRuleNamesDialog dialog=new EditSortMatchRuleNamesDialog(Display.getCurrent().getActiveShell(),getMatchRuleList());
      if (dialog.open() == Window.OK) {
        if (dialog.isDirty()) {
          redrawnSubTableContent();
          listeners.firePropertyChange(MatchAnalysisConstant.ISDIRTY_PROPERTY,true,false);
        }
      }
    }
  }
);
  Button addButton=new Button(com,SWT.FLAT | SWT.CENTER);
  addButton.setImage(ADD_IMG);
  addButton.setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
  addButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      MatchRule newMatchRule=getNewMatchRule();
      addRuleTab(true,newMatchRule);
      addMatchRuleToAnalysis(newMatchRule);
      listeners.firePropertyChange(MatchAnalysisConstant.ISDIRTY_PROPERTY,true,false);
    }
  }
);
  ruleFolder.setTopRight(com);
  initMatchRuleTabs();
  createGroupQualityThreshold(parent);
  return parent;
}

Fixed version (ground truth):
@Override protected Composite createSubContent(Composite sectionClient){
  Composite parent=toolkit.createComposite(sectionClient);
  GridLayout tableLayout=new GridLayout(1,Boolean.TRUE);
  parent.setLayout(tableLayout);
  GridData gridData=new GridData(GridData.FILL_BOTH);
  parent.setLayoutData(gridData);
  ruleFolder=new CTabFolder(parent,SWT.MULTI | SWT.BORDER);
  ruleFolder.setRenderer(new MatchRuleCTabFolderRenderer(ruleFolder));
  ruleFolder.setMaximizeVisible(false);
  ruleFolder.setMinimizeVisible(false);
  ruleFolder.setTabHeight(35);
  ruleFolder.setSimple(false);
  ruleFolder.setDragDetect(true);
  GridData folderData=new GridData(GridData.FILL_BOTH);
  ruleFolder.setLayoutData(folderData);
  ruleFolder.addCTabFolder2Listener(new CTabFolder2Adapter(){
    @Override public void close(    CTabFolderEvent event){
      CTabItem tabItem=(CTabItem)event.item;
      deleteMatchRuleTab(tabItem);
    }
  }
);
  ruleFolder.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      fireSwitchRuleTabEvent();
    }
  }
);
  Composite com=toolkit.createComposite(ruleFolder);
  GridLayout comTableLayout=new GridLayout(2,Boolean.TRUE);
  com.setLayout(comTableLayout);
  Button editButton=new Button(com,SWT.FLAT | SWT.CENTER);
  editButton.setImage(EDIT_IMG);
  editButton.setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
  editButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      List<MatchRule> matchRuleList=getMatchRuleList();
      EditSortMatchRuleNamesDialog dialog=new EditSortMatchRuleNamesDialog(Display.getCurrent().getActiveShell(),matchRuleList);
      if (dialog.open() == Window.OK) {
        matchRuleList.clear();
        matchRuleList.addAll(dialog.getResultMatchRuleList());
        redrawnSubTableContent();
        listeners.firePropertyChange(MatchAnalysisConstant.ISDIRTY_PROPERTY,true,false);
      }
    }
  }
);
  Button addButton=new Button(com,SWT.FLAT | SWT.CENTER);
  addButton.setImage(ADD_IMG);
  addButton.setToolTipText(DefaultMessagesImpl.getString("String_Node_Str"));
  addButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      MatchRule newMatchRule=getNewMatchRule();
      addRuleTab(true,newMatchRule);
      addMatchRuleToAnalysis(newMatchRule);
      listeners.firePropertyChange(MatchAnalysisConstant.ISDIRTY_PROPERTY,true,false);
    }
  }
);
  ruleFolder.setTopRight(com);
  initMatchRuleTabs();
  createGroupQualityThreshold(parent);
  return parent;
}