Community
Participate
Working Groups
For MPart model objects it is possible to declare context variables that are used by the renderer to setup the IEclipseContext. Those context variables can be configured in MContext.getVariables() (MPart inherits from MContext). They are used by the renderer to initialize the IEclipseContext by declaring each of the variables defined in MContext.getVariables() as a modifiable context variable (IEclipseContext.declareModifiable(String)). One can read more about these useful context variables in Tom Schindl's blog: http://tomsondev.bestsolution.at/2013/11/21/what-ieclipsecontextdeclaremodifiable-is-good-for/ As MPartDescritpor model objects can be used to create MPart model objects dynamically (see EPartService.createPart(String)), I would expect that it is also possible to define context variables in the MPartDescriptor model object, so that the MPart that will be created based on this MPartDescriptor will be initialized using these context variables. But as MPartDescriptor model objects do not inherit the field "variables" from MContext, there is no known possibility to declare those context variables in the application model. Thus it is not possible to create a MPart from a MPartDescriptor that leverages IEclipseContext#declareModifiable being set by the renderer.
New Gerrit change created: https://git.eclipse.org/r/60377
Gerrit change https://git.eclipse.org/r/60377 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=9689ed2e8ddd40c7b8dead9fceddf44f68679c79
Dirk, is this still open or shall this be marked as fixed?
Resolved with applied patch