These lines are generally put at the top of the file, above the module
declaration. But actually, they are only used for completion, so it
won't solve your problem.

Concerning the error you get, it's weird. Are you sure about your launch
configuration, that everything is correct (no confusion between
"relationnal" and "relationnel")? Could you be more accurate about you
launching the transformation?

Regards,

Thierry

Le 30/03/2010 11:05, Maxime Lecourt a écrit :
> I created a Xpand project, with two metamodels, one called metamodel (an
> object metamodel), and another metamodel called relationnel (an
> relationnal metamodel).
>
> Now I'm trying to transform an xmi model I created following the object
> metamodel into a relationnal metamodel.
>
> I started with the basics, for all objects of type Class (in object
> metamodel), I want an Object of type Table (in relationnal metamodel).
> both have a name attribute.
>
> when I try to run my ATL file, I get
> Error loading
> platform:/resource/Object2Relationnal/metamodels/metamodel.e core: null
>
>
> What does that mean ?
> my metamodel is in metamodels folder, and the project name is
> Object2Relationnal, so it should be able to find it.
>
> Here is my atl file
> module Object2Relationnal;
>
> -- @path Object=/metamodels/metamodel.ecore
> -- @path Relationnel=/metamodels/relationnel.ecore
>
> create Out : Relationnel from IN : Object;
>
> -- Takes all classes from Model, and creates a Table from it
> rule Class2Table{
> from
> s : Object!Class
> to
> t : Relationnel!Table(
> name <- s.name
> )
> }

And my Target Model is
/Object2Relationnal/out.xmi (this file does not exist, it should be automatically created)
conforms to Relationnel

I "pick" the files through Eclipse Interface, so there should not be any confusion between name files. I did a copy/paste to copy my metamodels from another project, Model.xmi has been copied from same project.