Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Mixin grammar generates dependency to non-existing class
Mixin grammar generates dependency to non-existing class [message #827678] Fri, 23 March 2012 16:47 Go to next message
Tobias Böhm is currently offline Tobias BöhmFriend
Messages: 21
Registered: January 2012
Junior Member

say I have two grammars, DSL1 and DSL2. DSL2 would like to reuse rules and EMF-Types from DSL1. What I have done inside DSL2.xtext before the generate statement is

import "http: //<path>/DSL1" as DSL1

In my GenerateDSL2.mwe2 file I added

registerGenModelFile = "platform:/resource/<DSL1-Package>/src-gen/path/to/DSL1.genmodel"

to the bean=StandaloneSetup statement. It generates all right but the generated


type now references a type


which does not exist. All I've found is an abstract type


Do I have to extend it manually or did I do something wrong?

Re: Mixin grammar generates dependency to non-existing class [message #827689 is a reply to message #827678] Fri, 23 March 2012 17:06 Go to previous message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13464
Registered: July 2009
Senior Member

this was asked several times before

 // Serializer 2.0
 fragment = serializer.SerializerFragment {
     generateStub = true


Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:Editor and Console
Next Topic:grammar with imported model
Goto Forum:

Current Time: Mon May 25 20:10:33 GMT 2020

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

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

Back to the top