Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Context menu IDs for all the editors

Hi ,
 
I need to get the context menu id of all the possible editors like Java Editor, XML Editor (and all the possible editors that are listed in the 'Open With' list), to add a submenu in the context menu. I cannot locate any documents that mention the context menu Ids for all the editors.
The org.eclipse.ui.texteditor.AbstractTextEditor class, contains the setEditorContextMenuId() method in which you can set the context menu id of the editor. Does this mean that only the text editors extending from AbstractTextEditor can expose their context menu to be extended ?
 
Though I can locate the context menu id for the Java Editor (#CompilationUnitEditorContext), I cannot get the context menu id of the XML Editor and others. I think they are not extended from  AbstractTextEditor.
Please let me know the solution.
 
Thanks. 
 
 
 
 

Back to the top