title: Refreshing the workbench
body: <p>HI,</p>
  
  <p>I am facing some problem.. I want to hide the menu when eclipse workbench starts.
  But the problem is menu is not hiding when the eclipse workbench starts. It is hiding only
  when some refresh is happened. for example: when I change the default perspective to some other perspective, I am getting the desired out put. That means menu is hiding.
  But when the eclipse workbench is loaded it is not hiding the menu. Below is my code.</p>
  
  <pre><code>PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
              public void run() {
                  try {
  IWorkbenchWindow window = Workbench.getInstance().getActiveWorkbenchWindow()
  if(window instanceof WorkbenchWindow) {
     MenuManager menuManager = ((WorkbenchWindow)window).getMenuManager();
  IContributionItem[] items = menuManager.getItems();
             for(IContributionItem item:items){
                    System.out.println("item.getId()::: "+item.getId());
                    menuManager.remove("org.eclipse.ui.run");
                    menuManager.remove("help");
                    menuManager.remove("project");
             }
     }
  }`
  }
  };
  </code></pre>