/** Initialize the Ecore element when inside a script. */ public void eInit(SarlScript script, String name, IJvmTypeProvider context) { setTypeResolutionContext(context); if (this.sarlSpace == null) { this.sarlSpace = SarlFactory.eINSTANCE.createSarlSpace(); script.getXtendTypes().add(this.sarlSpace); this.sarlSpace.setAnnotationInfo(XtendFactory.eINSTANCE.createXtendTypeDeclaration()); if (!Strings.isEmpty(name)) { this.sarlSpace.setName(name); } } }