Community
Participate
Working Groups
Build 20020205 Darin S encountered some difficulties with viewerContributions to an editor's context menu. It seemed like it was getting hooked on the selection provider of the editor's site, rather than the one provided to registerContextMenu. The code in EditorPluginAction.editorChanged, which is called from the constructor, calls registerSelectionListener which registers on the part site's selection provider. This should not be done in the case of viewerContributions, which target a specific editor's context menu and aren't retargeted as with editorContributions. It turns out the problem Darin saw was due to something else, but this should be investigated. It seems like if the part site's selection provider is set before the viewerContribution's EditorPluginActions are created, and if the plugin is active, it will get hooked on this selection provider as well as the one passed to registerContextMenu. Also, PartPluginAction.refreshSelection(IWorkbenchPart) doesn't seem to be called from anywhere.
This is actually a contributions issue, unrelated to viewers (viewerContributions is a misnomer).
Defer until after 2.1
Moving Dougs bugs
Assigning to component owner PW
viewerContributions have been deprecated in favor of org.eclipse.ui.commands/org.eclipse.ui.menus. No new features or enhancement work will be planned.