Program: 124991
Project: 124991
Buggy source:
/** 
 * DOC hcyi Comment method "createComponents".
 */
private void createComponents(){
  setSimple(false);
  CTabItem item=new CTabItem(tabFolderEditors,SWT.BORDER);
  item.setText(Messages.getString("String_Node_Str"));
  SashForm inOutMetaEditorContainer=new SashForm(tabFolderEditors,SWT.SMOOTH | SWT.HORIZONTAL | SWT.SHADOW_OUT);
  inOutMetaEditorContainer.setLayout(new RowLayout(SWT.HORIZONTAL));
  item.setControl(inOutMetaEditorContainer);
  inputMetaEditor=new PigMapMetadataTableEditorView(inOutMetaEditorContainer,SWT.BORDER);
  inputMetaEditor.initGraphicComponents();
  addListenersToInputButtons();
  outputMetaEditor=new PigMapMetadataTableEditorView(inOutMetaEditorContainer,SWT.BORDER);
  outputMetaEditor.initGraphicComponents();
  addListenersToOutputButtons();
  item=new CTabItem(tabFolderEditors,SWT.BORDER);
  item.setText(Messages.getString("String_Node_Str"));
  StyledText styledText=createStyledText(item);
  this.styledTextHandler=new StyledTextHandler(styledText,mapperManage);
  tabFolderEditors.addListener(SWT.Selection,new Listener(){
    @Override public void handleEvent(    Event event){
    }
  }
);
  tabFolderEditors.setSelection(0);
}

Fixed version (ground truth):
/** 
 * DOC hcyi Comment method "createComponents".
 */
private void createComponents(){
  setSimple(false);
  CTabItem item=new CTabItem(tabFolderEditors,SWT.BORDER);
  item.setText(Messages.getString("String_Node_Str"));
  SashForm inOutMetaEditorContainer=new SashForm(tabFolderEditors,SWT.SMOOTH | SWT.HORIZONTAL | SWT.SHADOW_OUT);
  inOutMetaEditorContainer.setLayout(new RowLayout(SWT.HORIZONTAL));
  item.setControl(inOutMetaEditorContainer);
  inputMetaEditor=new PigMapMetadataTableEditorView(inOutMetaEditorContainer,SWT.BORDER);
  inputMetaEditor.initGraphicComponents();
  ILineSelectionListener metadataEditorViewerSelectionChangedListener=new ILineSelectionListener(){
    @Override public void handle(    LineSelectionEvent e){
      if (inputMetaEditor.getTableViewerCreator() == e.source && mapperManage.getGraphicalViewer() != null) {
        if (inputMetaEditor.getExtendedTableViewer().isExecuteSelectionEvent()) {
          mapperManage.selectLinkedInputTableEntries(inputMetaEditor.getTableViewerCreator().getTable().getSelectionIndices());
        }
      }
    }
  }
;
  inputMetaEditor.getTableViewerCreator().getSelectionHelper().addAfterSelectionListener(metadataEditorViewerSelectionChangedListener);
  addListenersToInputButtons();
  outputMetaEditor=new PigMapMetadataTableEditorView(inOutMetaEditorContainer,SWT.BORDER);
  outputMetaEditor.initGraphicComponents();
  metadataEditorViewerSelectionChangedListener=new ILineSelectionListener(){
    @Override public void handle(    LineSelectionEvent e){
      if (outputMetaEditor.getTableViewerCreator() == e.source && mapperManage.getGraphicalViewer() != null) {
        if (outputMetaEditor.getExtendedTableViewer().isExecuteSelectionEvent()) {
          mapperManage.selectLinkedOutputTableEntries(outputMetaEditor.getTableViewerCreator().getTable().getSelectionIndices());
        }
      }
    }
  }
;
  outputMetaEditor.getTableViewerCreator().getSelectionHelper().addAfterSelectionListener(metadataEditorViewerSelectionChangedListener);
  addListenersToOutputButtons();
  item=new CTabItem(tabFolderEditors,SWT.BORDER);
  item.setText(Messages.getString("String_Node_Str"));
  StyledText styledText=createStyledText(item);
  this.styledTextHandler=new StyledTextHandler(styledText,mapperManage);
  tabFolderEditors.addListener(SWT.Selection,new Listener(){
    @Override public void handleEvent(    Event event){
      mapperManage.fireCurrentDirectEditApply();
      lastSelectedTab=tabFolderEditors.getSelectionIndex();
    }
  }
);
  tabFolderEditors.setSelection(0);
}