eclipse RCP 怎么去除系统自带菜单

eclipse RCP 如何去除系统自带菜单
各位好
    开发eclipse RCP用向导生成Hello RCP,系统自己带出了Run 和 Search 菜单,我查遍了*.java都没发现是在哪添加的,请问如何去除系统自带菜单,谢谢!

------最佳解决方案--------------------
http://stackoverflow.com/questions/2451628/run-and-search-appear-in-rcp-menubar

按上面的改下就行。
------其他解决方案--------------------
1/ to hide menu/coolbar defined by ActionSet Extension Point.
IWorkbenchPage.hideActionSet(actionSetId)
IWorkbenchPage.hideActionSet("org.eclipse.search.menu"); 

2/ Hide its menu:
MenuManager mbManager = ((ApplicationWindow)page.getWorkbenchWindow()).getMenuBarManager();
for (int i=0; i<mbManager.getItems().length; i++){
  IContributionItem item=mbManager.getItems()[i];
  if (item.getId().equals("org.eclipse.search.menu")){
    item.setVisible(false);
  }
}

以上代码加在哪比较合适一点,本人eclipse小白,谢谢!
------其他解决方案--------------------
To:fangmingshijie
问题解决了,在postWindowOpen里面加,谢谢你!