Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] Incremental generation with Xtext models(Problems dealing with many model files)
[Xpand] Incremental generation with Xtext models [message #667324] Thu, 28 April 2011 02:52
Tobias Kniep is currently offline Tobias Kniep
Messages: 13
Registered: June 2010
Junior Member
Hello,

to speed up build time I'm currently experimenting with the incremental generation feature of Xpand. I have a large set of Xtext model files as the source of the generation.

My workflow file uses the "Incremental Generation Callback" mechansim as described in the documentation. However, I've replaced the "modelreader" component (which uses org.eclipse.emf.mwe.utils.Reader in the example) by the Xtext version org.eclipse.xtext.mwe.Reader.

When running the generator I get the following exception:
Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.eclipse.emf.ecore.EObject
	at org.eclipse.xpand2.incremental.compare.EmfCompare.invokeInternal(EmfCompare.java:77)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:31)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:31)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:80)
	... 3 more


So apparently the EmfCompare component cannot deal with multiple resources in the model slot as provided by the Xtext reader.

Do you have any idea how I can get this working?

Tobias
Previous Topic:[ACCELEO] how to generate java code??
Next Topic:[Acceleo] Overriding templates (provided by an installed plugin) in a dev project
Goto Forum:
  


Current Time: Sat Aug 30 10:43:56 EDT 2014

Powered by FUDForum. Page generated in 0.07878 seconds