I currently have a wizard page that summarizes the actions that the wizard is about to perform in a table. I would like to add my Copy command to the context menu for this table.
I know how to register context menus when those menus exist in a view or editor
Code:
viewPart.getSite().registerContextMenu(menuManger, viewer)
and then associate Commands with that those menus.
However, a wizard page is not a view or editor part and therefore does not have a Site associated with it. Because of this I cannot register the context menu for the wizard page.
Is it possible to register this context menu so that I can contribute Commands to the menu via the Command, Menu and Handler extension points in the plugin.xml file?
If this is not possible, is the next best solution, to create an Action that invokes a Command via
Code:
handlerService.executeCommand()
and manually add the Action to the context menu in the wizard page?\
Any help would be greatly appreciated.
Thanks.