Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » [EMFTVM] Path to import modules
[EMFTVM] Path to import modules [message #1130041] Wed, 09 October 2013 07:09 Go to next message
Javier García is currently offline Javier GarcíaFriend
Messages: 129
Registered: April 2013
Senior Member
Hi all,
I wanted to know how exactly does module importation work in EMFTVM, I've read the information provided here ( http://wiki.eclipse.org/ATL/EMFTVM#Module_import )and I'm still not sure if what I want can be done.
My package structure goes like this:

1 - ATLTesting
1.1 - EMFTVM
1.1.1 - Transformations
1.1.1.1 - Transformation1
1.1.1.1.1 - Transformation1.atl
1.1.1.2 - Transformation2
1.1.1.2.1 - Transformation2.atl
1.1.1.3 - Transformation3
1.1.1.3.1 - Transformation3.atl
1.1.1.4 - Libraries
1.1.1.4.1 - Library.atl

Now I want to access from all my transformations the same library. I've seen that I could do that if all the transformations and libraries were in the same folder, but could it be possible to use the library keeping this folder structure? And how would I have to do it?

Right now my only solution was to copy the same libraries folder to each transformation folder (and then call it using
uses "Libraries::UMLLibrary";
), which works fine but isn't what I want.

Thanks in advance,
regards,
Javier

[Updated on: Wed, 09 October 2013 07:53]

Report message to a moderator

Re: [EMFTVM] Path to import modules [message #1130122 is a reply to message #1130041] Wed, 09 October 2013 08:44 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Your module names should include the package structure:

module "ATLTesting::EMFTVM::Transformations::Transformation1::Transformation1"
module "ATLTesting::EMFTVM::Transformations::Transformation2::Transformation2"
module "ATLTesting::EMFTVM::Transformations::Transformation3::Transformation3"
module "ATLTesting::EMFTVM::Libraries::Library"

Or you could leave out the common prefix:

module "Transformations::Transformation1::Transformation1"
module "Transformations::Transformation2::Transformation2"
module "Transformations::Transformation3::Transformation3"
module "Libraries::Library"

In the "uses" clause, you refer to the other modules/libraries by their fully qualified name.


Cheers,
Dennis
Re: [EMFTVM] Path to import modules [message #1130163 is a reply to message #1130122] Wed, 09 October 2013 09:17 Go to previous message
Javier García is currently offline Javier GarcíaFriend
Messages: 129
Registered: April 2013
Senior Member
Thanks Dennis! that works perfectly.
Previous Topic:EMFTVM avoiding using elements from the output model
Next Topic:ATL and heap space
Goto Forum:
  


Current Time: Thu Apr 25 15:11:56 GMT 2024

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

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

Back to the top