Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [Solved] [Xpand/Xtend] : metamodel importation
[Solved] [Xpand/Xtend] : metamodel importation [message #1414128] Sat, 30 August 2014 06:47 Go to next message
Eclipse UserFriend
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 09:10] by Moderator

Re: [Xpand/Xtend] : metamodel importation [message #1414154 is a reply to message #1414128] Sat, 30 August 2014 08:44 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: [Xpand/Xtend] : metamodel importation [message #1414162 is a reply to message #1414154] Sat, 30 August 2014 09:09 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 07:58:37 EDT 2025

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

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

Back to the top