[Xpand] Incremental generation with Xtext models [message #667324] |
Thu, 28 April 2011 06:52 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03211 seconds