Program: 96373
Project: 96373
Buggy source:
/** 
 * {@inheritDoc}
 */
protected void createPages(){
  if (m_editorHelper == null) {
    m_editorHelper=new JBEditorHelper(this);
  }
  m_omEditorBP=new OMEditorBP(this);
  IObjectMappingPO objMap=getAut().getObjMap();
  if (objMap == null) {
    objMap=PoMaker.createObjectMappingPO();
    getAut().setObjMap(objMap);
  }
  checkMasterSessionUpToDate();
  createActions();
  MenuManager menuMgr=new MenuManager();
  menuMgr.setRemoveAllWhenShown(true);
  menuMgr.addMenuListener(new IMenuListener(){
    public void menuAboutToShow(    IMenuManager mgr){
      fillTreeContextMenu(mgr);
    }
  }
);
  GuiEventDispatcher.getInstance().addEditorDirtyStateListener(this,true);
  getEditorHelper().addListeners();
  checkAndFixInconsistentData();
  getOmEditorBP().collectNewLogicalComponentNames();
  int splitPaneViewIndex=addPage(createSplitPanePageControl(getContainer(),menuMgr));
  int treeViewIndex=addPage(createTreePageControl(getContainer(),menuMgr));
  int tableViewIndex=addPage(createTablePageControl(getContainer()));
  int configViewIndex=addPage(createConfigPageControl(getContainer()));
  setPageText(splitPaneViewIndex,Messages.ObjectMappingEditorSplitPaneView);
  setPageText(treeViewIndex,Messages.ObjectMappingEditorTreeView);
  setPageText(tableViewIndex,Messages.ObjectMappingEditorTableView);
  setPageText(configViewIndex,Messages.ObjectMappingEditorConfigView);
  m_pageToSelectionProvider.put(splitPaneViewIndex,m_splitPaneSelectionProvider);
  m_pageToSelectionProvider.put(treeViewIndex,m_treeViewer);
  m_pageToSelectionProvider.put(tableViewIndex,m_tableViewer);
  m_pageToSelectionProvider.put(configViewIndex,new NullSelectionProvider());
  m_selectionProvider=new SelectionProviderIntermediate();
  m_selectionProvider.setSelectionProviderDelegate(m_pageToSelectionProvider.get(getActivePage()));
  getSite().setSelectionProvider(m_selectionProvider);
  m_selectionProvider.addSelectionChangedListener(m_actionListener);
  m_selectionProvider.addSelectionChangedListener(m_editorSelectionChangedListener);
  ObjectMappingEventDispatcher.addObserver(this);
  m_treeViewerUpdater=new ComponentNameTreeViewerUpdater(m_treeViewer,getEditorHelper().getEditSupport().getCompMapper().getCompNameCache());
  m_treeViewer.expandToLevel(2);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
protected void createPages(){
  if (m_editorHelper == null) {
    m_editorHelper=new JBEditorHelper(this);
  }
  m_omEditorBP=new OMEditorBP(this);
  IObjectMappingPO objMap=getAut().getObjMap();
  if (objMap == null) {
    objMap=PoMaker.createObjectMappingPO();
    getAut().setObjMap(objMap);
  }
  checkMasterSessionUpToDate();
  createActions();
  MenuManager menuMgr=new MenuManager();
  menuMgr.setRemoveAllWhenShown(true);
  menuMgr.addMenuListener(new IMenuListener(){
    public void menuAboutToShow(    IMenuManager mgr){
      fillTreeContextMenu(mgr);
    }
  }
);
  GuiEventDispatcher.getInstance().addEditorDirtyStateListener(this,true);
  getEditorHelper().addListeners();
  getOmEditorBP().collectNewLogicalComponentNames();
  int splitPaneViewIndex=addPage(createSplitPanePageControl(getContainer(),menuMgr));
  int treeViewIndex=addPage(createTreePageControl(getContainer(),menuMgr));
  int tableViewIndex=addPage(createTablePageControl(getContainer()));
  int configViewIndex=addPage(createConfigPageControl(getContainer()));
  setPageText(splitPaneViewIndex,Messages.ObjectMappingEditorSplitPaneView);
  setPageText(treeViewIndex,Messages.ObjectMappingEditorTreeView);
  setPageText(tableViewIndex,Messages.ObjectMappingEditorTableView);
  setPageText(configViewIndex,Messages.ObjectMappingEditorConfigView);
  m_pageToSelectionProvider.put(splitPaneViewIndex,m_splitPaneSelectionProvider);
  m_pageToSelectionProvider.put(treeViewIndex,m_treeViewer);
  m_pageToSelectionProvider.put(tableViewIndex,m_tableViewer);
  m_pageToSelectionProvider.put(configViewIndex,new NullSelectionProvider());
  m_selectionProvider=new SelectionProviderIntermediate();
  m_selectionProvider.setSelectionProviderDelegate(m_pageToSelectionProvider.get(getActivePage()));
  getSite().setSelectionProvider(m_selectionProvider);
  m_selectionProvider.addSelectionChangedListener(m_actionListener);
  m_selectionProvider.addSelectionChangedListener(m_editorSelectionChangedListener);
  ObjectMappingEventDispatcher.addObserver(this);
  m_treeViewerUpdater=new ComponentNameTreeViewerUpdater(m_treeViewer,getEditorHelper().getEditSupport().getCompMapper().getCompNameCache());
  checkAndFixInconsistentData();
  m_treeViewer.expandToLevel(2);
}