Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Navigation of ref'd associations
Navigation of ref'd associations [message #588909] Fri, 07 May 2010 10:28
Eclipse UserFriend
Originally posted by:

I have two metamodels, defined in separate folders (one Emfatic file in
each folder). Metamodel A has a class Foo that has a 'ref' association
with a class Bar in metamodel B. A model based on metamodel B is
generated first (using ETL) and then a model based on metamodel A is
generated (again using ETL). I can bind class Foo to class Bar via:
foo : A.Foo
bar : B.Bar
foo.barAtt := bar

When I open the model based on metamodel A with the Exeed editor and
navigate down to foo (an instance of metaclass Foo), I can see the
attribute barAtt and it's associated value (which, in this case, appears
to have been generated using the value of the name attribute of the
class - i.e. an attribute I declared on the metaclass).

However, if I try to navigate to the attribute via:
I receive an error to the effect that the property 'name' is not found.
It appears that Exeed is able to navigate the association, how can I do
this from within EOL/ETL? I don't want to add a 'val' to Foo within
metamodel B because that would introduce a circularity.

Best Wishes
Previous Topic:Declaring objects of enum types within EOL scripts
Next Topic:ECL/EML example not working
Goto Forum:

Current Time: Tue Apr 24 03:28:05 GMT 2018

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

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