WTP Eclipse JavaScript editor - how to add context menu items?
I've been unable to discover how to add right-click popup context menu items to the WTP 3.2.x (JS) JavaScript editor for my plug-in.
In the past I've extended this type of functionality via an editor ID.
In the manifest using the extension org.eclipse.ui.editorActions I am able to add menu-bar items using the ID 'org.eclipse.wst.jsdt.ui.CompilationUnitEditor'.
In the manifest using the extension org.eclipse.ui.popupMenus none of the things I have tried have allowed me to add context menu items.
I am hoping someone with more knowledge of the inner开发者_StackOverflow社区 workings of the new WTP JavaScript editor(s) will be willing to offer some advice.
Perhaps someone from the WTP team might be able to comment on this.
Thanks in advance!
Try #JavaScriptEditorContext, as set in the CompilationUnitEditor's constructor.
精彩评论