Community
Participate
Working Groups
In a MultiPageEditorPart with a TextEditor as one of the pages, the site created for the TextEditor is a MultiPageEditorSite and the part info in the site is a MultiPageEditorPart. When the TextEditor uses the site to register the ruler context menus, it failed because AbstractRulerActionDelegate.setActiveEditor() checks if fEditor instanceof ITextEditor. As a result of this problem, the Add/Remove Bookmark/Task ruler context menus in a TextEditor within a MultiPageEditorPart are not functioning.
To solve this properly would require a fairly major redesign of MultiPageEditorPart, which we will be unable to do for 2.0.
Any suggestion on how to workaround the problem in 2.0?
I know of know workaround for this. The action contribution mechanism assumes that the actions are being contributed to the top level editor.
PDE seems to have worked around this in the plugin.xml editor's source page. The code in PDEEditorContributor.setActiveEditor(IEditorPart) tests whether the source page is active, and if so calls IWorkbenchPage.activate(IWorkbenchPart) on the nested editor. This is not a recommended workaround, and has unwanted side effects as noted in bug 19361. Randy, any ideas?
*** Bug 22464 has been marked as a duplicate of this bug. ***
Adding Stefan, to consider with his services work....
cc'ing Kai too, as this is a concrete occurrence of where the editor makes assumptions about its context (not that it has a choice currently <g>).
Moving Dougs bugs
Assigning to component owner PW
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.