Skip to main content

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 06:52
Tobias Kniep is currently offline Tobias KniepFriend
Messages: 13
Registered: June 2010
Junior Member

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.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(
	... 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?

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: Tue Jul 16 10:31:00 GMT 2024

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

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

Back to the top