title: Eclipse RCP text editor - hiding context menu elements
body: <p>I'm trying to implement a slightly customized XML editor for my Eclipse RCP application. The editor extends the TextEditor class and works just fine. Except that it puts a lot of stuff to the context (right-click) popup menu I don't really need. I found that I need to overwrite the <strong>editorContextMenuAboutToShow</strong> function:</p>
  
  <pre><code>@Override
  public void editorContextMenuAboutToShow(IMenuManager menu) {
      menu.removeAll();
  }
  </code></pre>
  
  <p>This works fine except that I still have menus in my context menu, namely <strong>Debug As, Run As, Validate, Team, Compare</strong> etc. menus and their submenus. </p>
  
  <p>I'm not sure what else to do and this is very annoying since I do not want the user to get access to these features. I'd appreciate any help</p>
  
  <p>Thank you </p>