You need to add the context menu to the PyDev editor manually.
You can do this by installing a plugin with the following in plugin.xml:
<plugin>
<extension point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.python.pydev.editor.PythonEditor.EditorContext">
<dynamic
class="org.eclipse.ecf.docshare.menu.DocShareRosterMenuContributionItem"
id="com.foo.MyVeryOwnEditorContextID.dynamic1">
</dynamic>
</menuContribution>
</extension>
</plugin>
Here org.python.pydev.editor.PythonEditor.EditorContextis the context identifier of the PyDev editor.
If you want to add a context menu item to another editor, you will have to change this identifier. It can be found by pressing Shift- Alt- F1when used in the editor to which you want to add it.
com.foo.MyVeryOwnEditorContextID.dynamic1 just have to be a unique identifier of your choice.
Then you have to put the .jar plugin file in the plugins folder in the eclipse directory.
source
share