grammar with imported model [message #827794] |
Fri, 23 March 2012 20:12 |
Vlad Dumitrescu Messages: 431 Registered: July 2009 Location: Gothenburg |
Senior Member |
|
|
Hi!
I took the model generated from my grammar and moved it to a separate plugin, created an .ecore file and a generator, moved the "org.eclipse.emf.ecore.generated_package" extension point to the other plugin, replaced "generate" with "import" in the grammar, qualified all types with the imported package name, added dependency to the new plugin and adjusted the associated .mwe2 (StandaloneSetup) and it looks like it works fine.
With one exception: in the editor, I get "Could not resolve reference to EPackage..." and follow-up errors for all types in that package. I could swear that it has been working at one time, but now this error doesn't go away whatever I do...
Please someone tell me what I am missing here. I'm sure it's something absolutely obvious - in hindsight...
BTW, for what I need to do it feels like I could better use a postprocessor to enhance the generated model, but the FAQ links to those topics point to the top of the docs and there seems to be no info on that anymore. Is Xtext2EcoreTransformer still possible to extend? How?
best regards,
Vlad
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02909 seconds