Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [solved] how to get the parent name in XTEND(Is there something like referencedAttr.parent.name)
[solved] how to get the parent name in XTEND [message #1150199] Tue, 22 October 2013 12:10 Go to next message
Eclipse UserFriend
I used qualified name to get an attribute of a class as a reference (Aclass.Battr)

If I use referencedAttr.name in the generator, I get "Battr".
How do I get the name of the class?
Is there something like referencedAttr.parent.name which returns "Aclass" ?

[Updated on: Mon, 11 November 2013 06:20] by Moderator

Re: how to get the parent name in XTEND [message #1150207 is a reply to message #1150199] Tue, 22 October 2013 12:14 Go to previous messageGo to next message
Eclipse UserFriend
hi you get the parent with child.eContainer()
Re: how to get the parent name in XTEND [message #1150252 is a reply to message #1150207] Tue, 22 October 2013 12:50 Go to previous message
Eclipse UserFriend
Thanks Christian for the fast hint works perfectly well

[Updated on: Tue, 22 October 2013 13:00] by Moderator

Previous Topic:How to serialize DSL-Files to UML-Model
Next Topic:Using eclipse menu for code generation
Goto Forum:
  


Current Time: Mon Jul 14 04:37:08 EDT 2025

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

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

Back to the top