use of org.eclipse.xtext.xtext.generator.CodeConfig in project xtext-core by eclipse.
the class XtextGenerator method initialize.
public void initialize() {
if ((this.injector == null)) {
XtextGenerator.LOG.info("Initializing Xtext generator");
new StandaloneSetup().addRegisterGeneratedEPackage("org.eclipse.xtext.common.types.TypesPackage");
this.initializeEncoding();
this.injector = this.createInjector();
this.injector.injectMembers(this);
CodeConfig _instance = this.injector.<CodeConfig>getInstance(CodeConfig.class);
final Procedure1<CodeConfig> _function = (CodeConfig it) -> {
it.initialize(this.injector);
};
ObjectExtensions.<CodeConfig>operator_doubleArrow(_instance, _function);
this.projectConfig.initialize(this.injector);
this.cleaner.initialize(this.injector);
this.standaloneSetup.initialize(this.injector);
for (final XtextGeneratorLanguage language : this.languageConfigs) {
{
final Injector languageInjector = this.createLanguageInjector(this.injector, language);
language.initialize(languageInjector);
}
}
}
}
Aggregations