proxies won't be resolved [message #514816] |
Tue, 16 February 2010 17:31 |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
Hello all,
I created a metamodel (MM1) in which one class has references to
metaclasses of the Ecore metamodel and to another metamodel created by
me (MM2). Now, when I want to investigate the references of MM2 elements
in MM1 instances I basically only get the elements of the referenced MM2
instance on the first level. That means elements they contain are always
empty. I get always empty lists in my JUnit-Tests when asking for
containment references of the MM2 elements referenced in a MM1 instance.
So I tried out EcoreUtil.resolveAll(o) at almost every code line in the
test, passed every time different arguments as parameters:
the MM1 instance itself, the model which contains the referenced MM2
instances.
I had no success at all. That's why I'm asking here, where I can find
more detailed information about the resolve proxy issue and if someone
can help me solve the problem. I'm stuck at the moment and this problem
blocks my work :(
best regards,
Gilbert
|
|
|
|
Re: proxies won't be resolved [message #515259 is a reply to message #514900] |
Thu, 18 February 2010 09:47 |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
Hi Ed,
I wanted to break down my metamodels and code to publish a short example
plugin here with junit test code. When doing this I recognized that the
failure doesn't come from EMF but from other functionality from another
plugin. So I could do a bug report. Thanks for pushing me in the
direction of dealing with it more detailed and resulting in a bug report
for us ;)
best regards,
Gilbert
> Gilbert,
>
> Comments below.
>
> Gilbert Mirenque wrote:
>> Hello all,
>> I created a metamodel (MM1) in which one class has references to
>> metaclasses of the Ecore metamodel and to another metamodel created by
>> me (MM2). Now, when I want to investigate the references of MM2 elements
>> in MM1 instances I basically only get the elements of the referenced MM2
>> instance on the first level.
> So many metas make my brain hurt.
>> That means elements they contain are always
>> empty. I get always empty lists in my JUnit-Tests when asking for
>> containment references of the MM2 elements referenced in a MM1 instance.
>> So I tried out EcoreUtil.resolveAll(o) at almost every code line in the
>> test, passed every time different arguments as parameters:
>> the MM1 instance itself, the model which contains the referenced MM2
>> instances.
>>
> I totally don't follow what you're saying.
>> I had no success at all. That's why I'm asking here, where I can find
>> more detailed information about the resolve proxy issue and if someone
>> can help me solve the problem. I'm stuck at the moment and this problem
>> blocks my work :(
>>
> I really have no idea what you're doing. You really need to provide a
> bit more concrete detail.
>> best regards,
>> Gilbert
>> .
|
|
|
Powered by
FUDForum. Page generated in 0.01720 seconds