Eclipse plugin development: how to add an option to the right-click menu

I created an eclipse plugin. I can add a menu and submenu.

However, I cannot add the option to the right-click menu. Does anyone know how to do this?

+7
source share
2 answers

Here is an example (this code filled in your preferences and classes and was added to the plugin.xml file):

<extension point="org.eclipse.ui.popupMenus"> <objectContribution adaptable="true" id="" nameFilter="" objectClass="org.eclipse.core.resources.IFile"> <action id="org.eclipse.ui.articles.action.contribution.object.action1" label="" icon="" menubarPath="additions" class=""> </action> </objectContribution> </extension> 
+5
source
+5
source

All Articles