Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » proxies won't be resolved
proxies won't be resolved [message #514816] Tue, 16 February 2010 17:31 Go to next message
Eclipse UserFriend
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 #514900 is a reply to message #514816] Wed, 17 February 2010 05:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: proxies won't be resolved [message #515259 is a reply to message #514900] Thu, 18 February 2010 09:47 Go to previous message
Eclipse UserFriend
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
>> .
Previous Topic:XSD to Ecore
Next Topic:Re: Use Teneo together with Spring
Goto Forum:
  


Current Time: Fri Apr 19 01:19:17 GMT 2024

Powered by FUDForum. Page generated in 0.01720 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top