|
|
Re: [Acceleo] How to register other metamodels? [message #509066 is a reply to message #508176] |
Thu, 21 January 2010 05:34   |
|
This is a multi-part message in MIME format.
--------------040701040009050805040506
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Anderson,
Sorry for the delay, I let your question slip trough. You can use
metamodels not only through their NsURI, but also by using their path
relative to the workspace in the module signature.
For example if your metamodel is in projet "myproject", in the folder
"model" within your workspace, you can define an Acceleo module such as
[module('/myproject/model/mymetamodel.ecore')/]
Laurent Goubet
Obeo
Anderson Ledo wrote:
> With the MOFScript tool you can specify a path for the metamodels you
> want to use or you can add your ecore metamodels directly inside the
> plugin directory. It would be nice if an equivalent solution were
> available.
>
> Regards...
--------------040701040009050805040506
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"
YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------040701040009050805040506--
|
|
|
|
|
Re: [Acceleo] How to register other metamodels? [message #510650 is a reply to message #509634] |
Thu, 28 January 2010 08:53   |
|
This is a multi-part message in MIME format.
--------------010508000204050207070707
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Anderson,
Version 0.8.1 didn't have what's needed to resolve metamodels as
workspace-relative pathes. You have to follow Andre's step-by-step to
get your metamodel to be resolved with its NsURI only.
Laurent Goubet
Obeo
Andre wrote:
> HI anderson.
>
> i'm not an expert on Acceleo, but have you tried the steps below?
>
> 1) generate the genmodel of the Ecore file
> 2) generate all files from genmodel
> 3) run a new Eclipse application
> 4) on the new workspace, create the Acceleo Project (you already did this)
> 5) create a New Acceleo Module File; on Metamodel URI, click on
> 'Browse...', then 'Runtime Version'.. your metamodel should appear now..
>
> i hope it will work..
>
--------------010508000204050207070707
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"
YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------010508000204050207070707--
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02900 seconds