Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Acceleo (How to get the name of the relationship stereotype)
Acceleo [message #1783603] Wed, 14 March 2018 14:31 Go to next message
Emilie  Lanau is currently offline Emilie LanauFriend
Messages: 21
Registered: February 2018
Junior Member
Hi, i have created a model and appling my profil on it
and now i want to get the name of relationship between requirements wich are in red and i don't know how to do it in an acceleo template
  • Attachment: Model.PNG
    (Size: 13.55KB, Downloaded 29 times)
Re: Acceleo [message #1784020 is a reply to message #1783603] Wed, 21 March 2018 15:20 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6111
Registered: July 2009
Senior Member
Hi

If you provide a repro (zipped project) representing your best, no doubt failing, attempt, I can try to help you make it better.

However, I'm sorry that I do not have time to guess at what you are trying to do and what you have tried to do.

Regards

Ed Willink
Re: Acceleo [message #1784028 is a reply to message #1784020] Wed, 21 March 2018 17:56 Go to previous messageGo to next message
Emilie  Lanau is currently offline Emilie LanauFriend
Messages: 21
Registered: February 2018
Junior Member
Sir @Ed Willink here is my project my profil (papyrus project )where you'll find the model
an my trans (acceleo project) where i want to get the name of relationship
  • Attachment: MyProfil.rar
    (Size: 10.55KB, Downloaded 22 times)
  • Attachment: MyTrans.rar
    (Size: 13.36KB, Downloaded 27 times)

[Updated on: Wed, 21 March 2018 17:57]

Report message to a moderator

Re: Acceleo [message #1784076 is a reply to message #1784028] Thu, 22 March 2018 09:43 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6111
Registered: July 2009
Senior Member
Hi

(*.rar files are not Eclipse-friendly.)

Your first problem is that you have ignored the TODO at the foot of Generate.java to register your models.

For UML this is now trivially achieved by

UMLResourcesUtil.init(resourceSet);

(The next release of Acceleo is likely to have better comments that make this secret explicit.).

Unfortunately you are using SysML for which no one has yet provided a SysMLResourcesUtil.init(resourceSet) - see recent threads such as "unable get SysML stereotypes".

I am sorry, I am not a SysML (or even Acceleo) user and do not have time to go that far away from my OCL/QVT interests. I raised https://bugs.eclipse.org/bugs/show_bug.cgi?id=531840 to try to make some progress on this FAQ.

Regards

Ed Willink


Previous Topic:how to get the name of the relationship dependency
Next Topic:Acceleo
Goto Forum:
  


Current Time: Fri Nov 16 22:21:36 GMT 2018

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

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

Back to the top