Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Error detection in xPand templates files
Error detection in xPand templates files [message #495834] Fri, 06 November 2009 11:04 Go to next message
Wafi Dahman is currently offline Wafi Dahman
Messages: 15
Registered: November 2009
Junior Member
hi,
my xPand templates files do not recognize / detect erros! where this problem could be located?
Re: Error detection in xPand templates files [message #495856 is a reply to message #495834] Fri, 06 November 2009 12:12 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten Thoms
Messages: 354
Registered: July 2009
Location: Dortmund
Senior Member

Hi Wafi!

I assume you mean error detection in the IDE, not at execution time.

Most probably you won't have the Xpand/Xtend nature active on your project. This can be activated by selecting the project and then Configure/Add Xtend/Xpand nature from the context menu.

Further, check your project settings that the correct metamodel contributor is configured. By default it will be enabled for EMF metamodels.

Kind regards,
~Karsten


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: Error detection in xPand templates files [message #495874 is a reply to message #495856] Fri, 06 November 2009 13:40 Go to previous message
Wafi Dahman is currently offline Wafi Dahman
Messages: 15
Registered: November 2009
Junior Member
hi,
thanx.. i have the following .project file

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ws.project</name>
<comment></comment>
<projects>
<project>my.generator.project</project>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.gmf.xpand.xpandBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.xtend.shared.ui.xtendXPandNature</nature >
</natures>
</projectDescription>


I see that xtend/xpand are there.. Is it correct?

[Updated on: Fri, 06 November 2009 13:59]

Report message to a moderator

Previous Topic:[xpand] reference to metamodel not understood by generator
Next Topic:Eclipse Modeling Days
Goto Forum:
  


Current Time: Mon Oct 20 13:05:49 GMT 2014

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

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