Xtext project from existing ecore model [message #695709] |
Tue, 12 July 2011 11:37 |
Jeppe Cramon Messages: 37 Registered: July 2009 |
Member |
|
|
Hi
NB: Using Eclipse Indigo, with the Indigo release Xtext plugin and the project running with Xtext 2 experimental features enabled...
Created a new Xtext project from a fairly simple ecore model (with a newly created generator model) and upon running the MWE2 file it complains that it can't find the interface (that it's supposed to be generating as I understand it).
Caused by: org.eclipse.emf.mwe.core.ConfigurationException: Couldn't find an interface types.TypesPackage
at org.eclipse.emf.mwe.utils.StandaloneSetup.addRegisterGeneratedEPackage(StandaloneSetup.java:267)
... 35 more
Note: in the example below I moved my model file into the xtext project, but I've also tried creating a project from scratch which references the ecore model from the project where it originates, with the same runtime exception.
module dk.example.poc.types.TypesDsl
import org.eclipse.emf.mwe.utils.*
import org.eclipse.xtext.generator.*
import org.eclipse.xtext.ui.generator.*
var grammarURI = "classpath:/dk/example/poc/types/TypesDsl.xtext"
var file.extensions = "types"
var projectName = "dk.example.poc.types"
var runtimeProject = "../${projectName}"
Workflow {
bean = StandaloneSetup {
platformUri = "${runtimeProject}/.."
registerGeneratedEPackage = "types.TypesPackage"
// registerGenModelFile = "platform:/resource/dk.example.poc.types/model/Types.genmodel"
}
...
Does anyone have a clue to what's wrong?
/Jeppe
[Updated on: Tue, 12 July 2011 11:40] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04798 seconds