melange icon indicating copy to clipboard operation
melange copied to clipboard

Model type inference doesn't work with imported model type definitions

Open dvojtise opened this issue 8 years ago • 1 comments

When I write

package org.gemoc.xfsm
import org.gemoc.sample.legacyfsm.fsm.FSMMT

language XFSM {
	syntax "platform:/resource/org.gemoc.sample.legacyfsm.fsm.model/model/fsm.ecore"
	with org.gemoc.sample.legacyfsm.fsm.k3dsa.*
}

the ModelType inference doesn't work even if I correctly set the project dependencies and add an import to the modeltype to make it visible in the java context.

The inference currently works only if the definition is local

package org.gemoc.xfsm
language FSMLocal {
	syntax "platform:/resource/org.gemoc.sample.legacyfsm.fsm.model/model/fsm.ecore"
}

language XFSM {
	syntax "platform:/resource/org.gemoc.sample.legacyfsm.fsm.model/model/fsm.ecore"	
	with org.gemoc.sample.legacyfsm.fsm.k3dsa.*
}

dvojtise avatar Feb 23 '17 10:02 dvojtise