Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » working with imported models
working with imported models [message #1848169] Tue, 23 November 2021 05:28 Go to next message
Eclipse UserFriend
Hi all,
I am new to Acceleo and I have this question:
Can Acceleo work with imported models and elements in it?
For example:
I have the CORE model and the User class in CORE, CORE is imported (LOAD) in model X .
I need to get the User class name and User attributes (or other classes) using a template working on the X model (not on the CORE model).

Is it possible?

Thanks for the answer,

Ilya

[Updated on: Tue, 23 November 2021 12:50] by Moderator

Re: working with imported models [message #1848170 is a reply to message #1848169] Tue, 23 November 2021 06:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Absolutely. Models that can't refer to others would be pretty useless.

Regards

Ed Willink
Re: working with imported models [message #1848171 is a reply to message #1848169] Tue, 23 November 2021 06:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ed,

thanks,

Ilya
Re: working with imported models [message #1848172 is a reply to message #1848171] Tue, 23 November 2021 07:17 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ilya,

to extend Ed's answer.

You can
1. either use a query like self.eContents(uml::PackageImport) to query for PackageImport child elements of self
2. or drag'n'drop the imported package into the model and navigate to it as with a "normal" Package element.

/Carsten
Re: working with imported models [message #1848176 is a reply to message #1848172] Tue, 23 November 2021 12:57 Go to previous message
Eclipse UserFriend
Hi Carsten,

thanks!

Ilya
Previous Topic:M2T
Next Topic:correct downcast from Element to other UML types
Goto Forum:
  


Current Time: Tue May 13 14:09:12 EDT 2025

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

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

Back to the top