Creating a popup menu within a fragment.e4xmi for an editor at extension point org.eclipse.ui.editors

89 Views Asked by At

I am creating a custom editor via the extension point org.eclipse.ui.editors. This works all well. Let's say this is given the id=my.custom.editor.id

Now, I would like to define a popup menu for my editor within my fragment.e4xmi. I do not seem to get this to work. I tried creating a menuContribution with the Parent-ID:my.custom.editor.id, but when I try to activate the menu in my editor with menuService.registerContextMenu, I can see that no menu is associated to my editor part.

What is the correct way to create such a context menu?

0

There are 0 best solutions below