Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Acceleo Code(code to get the reltionship (association between blocks))
Acceleo Code [message #1784861] Wed, 04 April 2018 21:21 Go to next message
Emilie  Lanau is currently offline Emilie LanauFriend
Messages: 21
Registered: February 2018
Junior Member
Hi,
i want the code that generate the name of the association between two blocks in block definition diagram
for exemple to get the name of blocks i'm using this
[template public generateElement(m : Model)]
[comment @main/]
[file ('modl.txt', false, 'UTF-8')]
[for(it: Class | m.eAllContents(Class))]
[it.name/]
[/for]
[/file]
[/template]

but i don't know how to get the association
help me please :)
  • Attachment: Capture.PNG
    (Size: 34.14KB, Downloaded 162 times)
Re: Acceleo Code [message #1784875 is a reply to message #1784861] Thu, 05 April 2018 05:26 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

As you should have learned from a previous question you need to provide a complete machine readable repro. Your metamodel might be UML, or OCL Pivot or ... but neither have blocks. How am I supposed to help?

Regards

Ed Willink
Previous Topic:Different types of files that acceleo can generate
Next Topic:Error while generating A UML code
Goto Forum:
  


Current Time: Wed Apr 24 20:21:27 GMT 2024

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

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

Back to the top