Program: 122904
Project: 122904
Buggy source:
/** 
 * DOC amaumont 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 MetadataTableEditorView(inOutMetaEditorContainer,SWT.BORDER);
  inputMetaEditor.initGraphicComponents();
  addListenersToInputButtons();
  outputMetaEditor=new MetadataTableEditorView(inOutMetaEditorContainer,SWT.BORDER);
  outputMetaEditor.initGraphicComponents();
  addListenersToOutputButtons();
  item=new CTabItem(tabFolderEditors,SWT.BORDER);
  item.setText(Messages.getString("String_Node_Str"));
  SashForm xmlTreeEditorContainer=new SashForm(tabFolderEditors,SWT.SMOOTH | SWT.HORIZONTAL | SWT.SHADOW_OUT);
  xmlTreeEditorContainer.setLayout(new RowLayout(SWT.HORIZONTAL));
  item.setControl(xmlTreeEditorContainer);
  inputTreeSchemaEditor=new XmlTreeSchemaTableView(mapperManage.getSelectedInputTreeSchemaModel(null),xmlTreeEditorContainer);
  inputTreeSchemaEditor.initGraphicComponents();
  outputTreeSchemaEditor=new XmlTreeSchemaTableView(mapperManage.getSelectedOutputTreeSchemaModel(null),xmlTreeEditorContainer);
  outputTreeSchemaEditor.initGraphicComponents();
  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(){
    public void handleEvent(    Event event){
      mapperManage.fireCurrentDirectEditApply();
      if (styledTextHandler.getSelectedNode() != null && XmlMapUtil.DOCUMENT.equals(styledTextHandler.getSelectedNode().getType())) {
        styledTextHandler.setTextWithoutNotifyListeners("String_Node_Str");
        styledTextHandler.getStyledText().setEnabled(false);
        styledTextHandler.getStyledText().setEditable(false);
        styledTextHandler.getStyledText().setText("String_Node_Str");
      }
      lastSelectedTab=tabFolderEditors.getSelectionIndex();
    }
  }
);
  tabFolderEditors.setSelection(0);
}

Fixed version (ground truth):
/** 
 * DOC amaumont 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 MetadataTableEditorView(inOutMetaEditorContainer,SWT.BORDER);
  inputMetaEditor.initGraphicComponents();
  addListenersToInputButtons();
  outputMetaEditor=new MetadataTableEditorView(inOutMetaEditorContainer,SWT.BORDER);
  outputMetaEditor.initGraphicComponents();
  addListenersToOutputButtons();
  item=new CTabItem(tabFolderEditors,SWT.BORDER);
  item.setText(Messages.getString("String_Node_Str"));
  SashForm xmlTreeEditorContainer=new SashForm(tabFolderEditors,SWT.SMOOTH | SWT.HORIZONTAL | SWT.SHADOW_OUT);
  xmlTreeEditorContainer.setLayout(new RowLayout(SWT.HORIZONTAL));
  item.setControl(xmlTreeEditorContainer);
  inputTreeSchemaEditor=new XmlTreeSchemaTableView(mapperManage.getSelectedInputTreeSchemaModel(null),xmlTreeEditorContainer);
  inputTreeSchemaEditor.initGraphicComponents();
  outputTreeSchemaEditor=new OutputXmlTreeSchemaTableView(mapperManage.getSelectedOutputTreeSchemaModel(null),xmlTreeEditorContainer);
  outputTreeSchemaEditor.initGraphicComponents();
  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();
      if (styledTextHandler.getSelectedNode() != null && XmlMapUtil.DOCUMENT.equals(styledTextHandler.getSelectedNode().getType())) {
        styledTextHandler.setTextWithoutNotifyListeners("String_Node_Str");
        styledTextHandler.getStyledText().setEnabled(false);
        styledTextHandler.getStyledText().setEditable(false);
        styledTextHandler.getStyledText().setText("String_Node_Str");
      }
      lastSelectedTab=tabFolderEditors.getSelectionIndex();
    }
  }
);
  tabFolderEditors.setSelection(0);
}