Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [xpand] how to refer to an external metamodel ?
[xpand] how to refer to an external metamodel ? [message #549661] Tue, 27 July 2010 13:46 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: July 2010
Junior Member
Hello,

In a xpt file of my Xpand project, i would like to import a metamodel called SWING, like this :

«IMPORT swing».

The thing is that the swing ecore file is defined in another project (an ATL one), and i don't know how to make it available from the Xpand project (and to see it in auto-completion).


- I don't want to copy swing.ecore in my Xpand project. (too easy, and not elegant).

- I did "Register Metamodel" on swing.ecore

- I converted my ATL project to an Eclipse plugin and added it in the dependencies of my Xpand project

Thanks for help.

Sam.
Re: [xpand] how to refer to an external metamodel ? [message #549673 is a reply to message #549661] Tue, 27 July 2010 14:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

is the ecore in a source folder?

Regards
Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: [xpand] how to refer to an external metamodel ? [message #549679 is a reply to message #549673] Tue, 27 July 2010 14:21 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: July 2010
Junior Member
No,

The ecore file is in an ATL project created like this : File > New > ATL Project.

No java nature for this project.

Path to my ecore : myATLProject/metamodel/swing.ecore

Re: [xpand] how to refer to an external metamodel ? [message #549687 is a reply to message #549679] Tue, 27 July 2010 14:40 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Add the metamodel folder to your projects path (Runtime Tab in the Manifest Editor - Classpath) + Java Nature

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 27 July 2010 14:43]

Report message to a moderator

Re: [xpand] how to refer to an external metamodel ? [message #549692 is a reply to message #549687] Tue, 27 July 2010 15:07 Go to previous message
No real name is currently offline No real nameFriend
Messages: 4
Registered: July 2010
Junior Member
It works fine Smile

Thanks for your help and have a nice day.

Sam.
Previous Topic:[xpand] polymorphism with templates spread over multiple files
Next Topic:[Acceleo 3] Module to plugin [Resolved]
Goto Forum:
  


Current Time: Thu Mar 28 14:21:50 GMT 2024

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

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

Back to the top