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 editorContextMenuAboutToShow function:
@Override
public void editorContextMenuAboutToShow(IMenuManager menu) {
menu.removeAll();
}
This works fine except that I still have menus in my context menu, namely Debug As, Run As, Validate, Team, Compare etc. menus and their submenus.
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
Thank you