[EMF Forms][CDO] Make View model being CDO native [message #1268250] |
Mon, 10 March 2014 04:49  |
Eclipse User |
|
|
|
Hi All,
I'd like to ask if there is any chance to have View Model from EMF Forms as a CDO native model?
I'm using EMF Forms in my RCP-based application with CDO as a model repository. I need to store, next to domain model, view models, but as that view model is not CDO ready, I am loosing lazy loading.
Have you ever considered providing View model as a CDO native one? Or providing two versions of your model?
Cheers,
Paweł.
|
|
|
|
Re: [EMF Forms][CDO] Make View model being CDO native [message #1268618 is a reply to message #1268250] |
Mon, 10 March 2014 14:59   |
Eclipse User |
|
|
|
Hi,
Sounds interesting. However, I am not sure, if we really need lazy
loading for the view model. If the view is instantiated, the view model
will be completely in memory anyways. What is the motivation for this?
Regards
Jonas
Am 10.03.2014 09:49, schrieb Paweł Doleciński:
> Hi All,
>
> I'd like to ask if there is any chance to have View Model from EMF Forms
> as a CDO native model?
> I'm using EMF Forms in my RCP-based application with CDO as a model
> repository. I need to store, next to domain model, view models, but as
> that view model is not CDO ready, I am loosing lazy loading.
>
> Have you ever considered providing View model as a CDO native one? Or
> providing two versions of your model?
>
> Cheers,
> Paweł.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: [EMF Forms][CDO] Make View model being CDO native [message #1274074 is a reply to message #1272554] |
Thu, 20 March 2014 20:27  |
Eclipse User |
|
|
|
Hi,
we had some discussions about that. I undertand your use case. Although
I think it is pretty special, at least I do not know about any other
with these requirements. Making the View Model CDO native would add a
dependency to CDO. We want to keep the view model as stand-alone as
possible. I think GMF came to same conclusion. However, I do not see any
reason, why you should create a CDO native version yourself. I even do
not think it will be more effort for you then for us. If you see any
impediments, please let me know...
Best regards
Jonas
Am 18.03.2014 08:29, schrieb Paweł Doleciński:
> EMF Forms expects VView instance as an input. If I did my own model CDO
> native, it would not be VView anymore. I could inherit from EMF Forms
> View model but this leads me to extending every single leaf class in the
> hierarchy. My extension provides additional VAttachments which I can
> make CDO native but still from CDO I retrieve VView which is not native.
> This way would be great to have VView as CDO native. Otherwise I need to
> either do my own parallel model with converter or change EMF Forms
> directly and do my own release of that.
>
> I am from Central Europe but we can try to arrange a meeting anyway.
>
> Cheers
> Paweł
|
|
|
Powered by
FUDForum. Page generated in 0.06854 seconds