Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [Solved] [Xpand/Xtend] : metamodel importation
[Solved] [Xpand/Xtend] : metamodel importation [message #1414128] Sat, 30 August 2014 10:47 Go to next message
Didier Garcin is currently offline Didier GarcinFriend
Messages: 67
Registered: April 2013
Member
Hi everybody,

I encounter some trouble with metamodel imports.

I import some xtend modules in my own xtend file but an error says that the imported module has errors... but this is not the case.


Finally, I found out that it comes from that my own xtend module only accepts :
import ecore;

and hence, does not support :
import org::eclipse::emf::ecore;

as written in the imported xtend module.

What can it possible to do in order to accept the fully qualified name ?

Thanks a lot by advance !
Didier

[Updated on: Sat, 30 August 2014 13:10]

Report message to a moderator

Re: [Xpand/Xtend] : metamodel importation [message #1414154 is a reply to message #1414128] Sat, 30 August 2014 12:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13267
Registered: July 2009
Senior Member
Hi, are you referring to the old xtend (.ext file extension?)

have a look at http://help.eclipse.org/indigo/topic/org.eclipse.xpand.doc/help/core_reference.html

Quote:

You can import another Xtend file using the extension statement. The syntax is:

extension fully::qualified::ExtensionFileName;
Note, that no file extension (*.ext) is specified.


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: [Xpand/Xtend] : metamodel importation [message #1414162 is a reply to message #1414154] Sat, 30 August 2014 13:09 Go to previous message
Didier Garcin is currently offline Didier GarcinFriend
Messages: 67
Registered: April 2013
Member
Thank you, Christian.

I've just discovered what was wrong.
Project -> Properties -> Xtend/Xpand : enable 'JavaBeans Metamodel' checkbox.
Previous Topic:XText maven plugin output configuration obscurity
Next Topic:Resource without errors from validator
Goto Forum:
  


Current Time: Tue Dec 10 11:11:11 GMT 2019

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

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

Back to the top