| Re: [eclipse-incubator-e4-dev] Extension registry evolution - cross-posted from equinox-dev |
|
Hi, This is no problem. The extension injection can deal with nested/complex structures. This structure will get mapped to nested Java objects. This is currently not shown in http://wiki.eclipse.org/Riena_Getting_Started_with_injecting_services_and_extensions but the line (from the wiki): - an interface or an array of interfaces annotated with @ExtensionInterface
than the mapping tries to resolve to a nested element or to nested
elements.
indicates that there is more. :-) For your structure you would get something like that injected into your target via an update method (setter injection) void update(ISashDef[] sashDefs) { for ( ISashDef sashDef : sashDefs ) { Sash s = sashDef.createSash(); IStackDef stackDef = sashDef.getStack(); for ( IViewPartDef viewPartDef : stackDef.getViewParts() ) { String label = viewPartDef.getLabel(); IViewPart viewPart = viewPartDef.createViewPart(); } } } Hmm, I think I do not understand your idea. It seems to my that you are talking about the "producer" of extensions, right? Which uses EMF? Whereas our extension injection is on the "consumer" side of extensions. I might be completely wrong, but probably you can explain it. Stefan Tom Schindl wrote:
|