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