Action for a context menu on XtextEditor [message #1403378] |
Wed, 23 July 2014 11:13 |
Alexander R Messages: 211 Registered: July 2013 |
Senior Member |
|
|
Hi everyone,
I am trying to implement a pop-up menu with an action for any kind of XtextEditors.
My plugin-configuration looks like this:
<plugin>
<extension
id=" Xtext Action"
name="Xtext Action menu"
point="org.eclipse.ui.popupMenus">
<viewerContribution
id="simple.editor.action.viewerContribution1"
targetID="#TextEditorContext">
<visibility>
<objectClass
name="org.eclipse.jface.text.ITextSelection">
</objectClass>
</visibility>
<action
class="simple.editor.action.Action1"
id="simple.editor.action.action1"
label="Annotate xtext element"
menubarPath="additions">
</action>
</viewerContribution>
</extension>
</plugin>
The pop-up menu works fine, but only on every kind of texteditor (and not only for XtextEditors) (see : targetID="#TextEditorContext"). Is there maybe a targetID for only XtextEditors? I explored the XtextEditor in the runtime-workbench and found the following informations:
Maybe someone has any ideas how to solve this?
~Alex
[Updated on: Wed, 23 July 2014 15:20] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05010 seconds