|
Re: [EMF Forms] Using ViewModelService together with E4 DI [message #1252101 is a reply to message #1251784] |
Thu, 20 February 2014 23:32 |
Jonas Helming Messages: 699 Registered: July 2009 |
Senior Member |
|
|
Hi,
the general issue is, that we are single sourcing between 3.x and e4, so
any change, which makes us incompatible with 3.x is currently a no-go.
However, I would need to think about ways to make DI available, could
you file a BR for this?
Regards
Jonas
Am 20.02.2014 16:48, schrieb Paweł Doleciński:
> Hi,
>
> I've started using EMF Forms from the latest RC release of ECP 1.2.x.
>
> Now, when I've got embedded editor I need to implement my own
> ViewLocaleService and ReferenceService.
> I'd like to somehow use dependency injection from E4 there or at least
> have access to IEclipseContext.
>
> So far, all services are registered using
> rg.eclipse.emf.ecp.view.context.viewServices
> extension point, so I do not have any access to this fancy feature.
>
> One possible solution would be to use custom ViewModelContextFactory
> with extended ViewModelContextImpl, but this one is internal and has
> only internal export (thanks for this package export anyway).
>
> Better solution would be to add possibility to add custom things to
> ViewModelContext or easier extending.
>
> Maybe I overlooked something.
> Any ideas?
>
> Cheers,
> Paweł.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04158 seconds