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 09:46 Go to next message
No real name is currently offline No real name
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 10:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6131
Registered: July 2009
Senior Member
Hi,

is the ecore in a source folder?

Regards
Christian
Re: [xpand] how to refer to an external metamodel ? [message #549679 is a reply to message #549673] Tue, 27 July 2010 10:21 Go to previous messageGo to next message
No real name is currently offline No real name
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 10:40 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6131
Registered: July 2009
Senior Member
Add the metamodel folder to your projects path (Runtime Tab in the Manifest Editor - Classpath) + Java Nature

[Updated on: Tue, 27 July 2010 10: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 11:07 Go to previous message
No real name is currently offline No real name
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: Fri Jul 25 19:07:58 EDT 2014

Powered by FUDForum. Page generated in 0.02190 seconds