title: Adding new menu item to a menu bar defined in plugin.xml programmatically in RCP application
body: <p>I have an eclipse rcp application, with menu extension.
  There is one menu item "File"</p>
  
  <p>Now I want to add a new menu item from one of the  views (I know this is a wrong design, just want to test it)</p>
  
  <p>in the method createPartControl of my class that extends  ViewPar, I have:</p>
  
  <pre><code>Menu menuBar =  parent.getShell().getMenuBar(); //I get the Menu that contains File
  MenuItem editMenuItem = new MenuItem(menuBar, SWT.CASCADE);
  
  editMenuItem.setText("Edit");
  Menu editMenu = new Menu(parent.getShell(), SWT.DROP_DOWN);
  editMenuItem.setMenu(editMenu);
  </code></pre>
  
  <p>When in Debug I watch the <code>parent.getShell().getMenuBar()</code>
  I get:</p>
  
  <blockquote>
    <p>Menu {File, Edit}</p>
  </blockquote>
  
  <p>But in application window I see only File menu.</p>