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 03:09 Go to next message
Javier García is currently offline Javier García
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 03:53]

Report message to a moderator

Re: [EMFTVM] Path to import modules [message #1130122 is a reply to message #1130041] Wed, 09 October 2013 04:44 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis Wagelaar
Messages: 153
Registered: September 2012
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 05:17 Go to previous message
Javier García is currently offline Javier García
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: Wed Jul 30 23:31:49 EDT 2014

Powered by FUDForum. Page generated in 0.02215 seconds