Problems with references/proxy [message #690837] |
Thu, 30 June 2011 05:55  |
Eclipse User |
|
|
|
Hi all,
I am new to EMF and have a problem regarding cross references in the EMF model of the project I am working on. Assumed there is an EClass with an EReference pointing to an object in another resource, I understood that this reference is a proxy first and is resolved when the referenced object is loaded.
However I am confused about how/when this proxy is created, is this done automatically? My problem is that I want to resolve all references using EcoreUtils.resolveAll, but I saw that the reference in my class is set to null and not to the proxy when trying to resolve it, so resolving does not work.
Is there something wrong in the program/model or do I miss some information regarding that subject?
|
|
|
|
|
Re: Problems with references/proxy [message #691259 is a reply to message #691140] |
Fri, 01 July 2011 01:59  |
Eclipse User |
|
|
|
If they are null, then I don't think there's anything present in the
serialization...
> thanks a lot for your answer. I actually did not mean that
> EcoreUtils.resolveAll() replaced the proxies by null but that the
> references are null at the time I call resolveAll. So if I get it
> right the references should be proxies from deserialization on, so if
> they are null it should be a URI problem or so, which is definitely
> possible since I was told that the developers of the model did a lot
> of wrong stuff.
|
|
|
Powered by
FUDForum. Page generated in 1.27269 seconds