|Re: MultiPage Editor : swapping Action ContributorClasses [message #672002 is a reply to message #671880]
||Thu, 19 May 2011 14:41
| Paul Webster
Registered: July 2009
Are you asking about actions contributed through each editors EditorActionBarContributors (possibly 2 per real editor)? Or are you asking about editors that add IActions to their IActionBars in their createPartControl(Composite) method?|
In the first case, those contributions literally don't exist. There's no "I'll just point my MPEP at the original editor" API, because there are 2 many assumptions to host them correctly within an editor. If you want this case, the MPEP editor/EditorActionBarContributor has to re-implement everything it wants to swap in and out for each type of editor in its pages, and manage the whole thing itself.
In the second case, it looks like org.eclipse.ui.part.MultiPageEditorSite simply delegates to MPEP actionBars, which would mean the multiple editors in the MPEP would simple contribute all of their actions (they'd all be available while the MPEP was the active editor, regardless of what page it was on). In theory the MultiPageEditorSite is extendable, but I'm unless providing SubActionBars per site worked, I'm not sure what it would do.
Powered by FUDForum
. Page generated in 0.02726 seconds