Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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: Sat Jul 26 07:13:48 EDT 2025

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

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

Back to the top