final container = org.eclipse.xtext.EcoreUtil2.getContainerOfType(source, .class);method undefined:
model.set((uk.man.xman.ple.model.VariantConnection) bo);I know that the metamodel is correct, because when I tried to remove the inheritance from the other model, the spray project worked.
I suspect that the bug might come from the ecore file generation, like in these lines
<eClassifiers xsi:type="ecore:EClass" name="XmanArchitecture" eSuperTypes="../../uk.man.xman.xcore.model/model/xman.xcore#/EPackage/ComponentInstance #//FamilyConnectorTerminal #//VariationPointTerminal"/><eStructuralFeatures xsi:type="ecore:EReference" name="condition" lowerBound="1"
eType="ecore:EClass ../../uk.man.xman.xcore.model/model/xman.xcore#/EPackage/Input"
containment="true" resolveProxies="false"/>these "../../", I believe they should be something else, for the spray project to recognise the path,
but I haven't figured out exactly the cause, and how to fix it yet.
import uk.man.xman.xcore.ComponentInstance
class XmanArchitecture extends ComponentInstance{ }
<eClassifiers xsi:type="ecore:EClass" name="XmanArchitecture" eSuperTypes="../../uk.man.xman.xcore.model/model/xman.xcore#/EPackage/ComponentInstance"/>