use of org.eclipse.xtext.xtext.wizard.LanguageDescriptor in project xtext-core by eclipse.
the class WizardConfigurationTest method setupConfig.
@Before
public void setupConfig() {
WizardConfiguration _wizardConfiguration = new WizardConfiguration();
final Procedure1<WizardConfiguration> _function = (WizardConfiguration it) -> {
it.setBaseName("org.example.mydsl");
it.setRootLocation("");
LanguageDescriptor _language = it.getLanguage();
final Procedure1<LanguageDescriptor> _function_1 = (LanguageDescriptor it_1) -> {
it_1.setName("org.example.mydsl.MyDsl");
it_1.setFileExtensions(LanguageDescriptor.FileExtensions.fromString("mydsl"));
};
ObjectExtensions.<LanguageDescriptor>operator_doubleArrow(_language, _function_1);
};
WizardConfiguration _doubleArrow = ObjectExtensions.<WizardConfiguration>operator_doubleArrow(_wizardConfiguration, _function);
this.config = _doubleArrow;
}
use of org.eclipse.xtext.xtext.wizard.LanguageDescriptor in project xtext-core by eclipse.
the class CliWizardIntegrationTest method newProjectConfig.
private static WizardConfiguration newProjectConfig() {
WizardConfiguration _wizardConfiguration = new WizardConfiguration();
final Procedure1<WizardConfiguration> _function = (WizardConfiguration it) -> {
XtextVersion _xtextVersion = new XtextVersion("unspecified");
it.setXtextVersion(_xtextVersion);
it.setEncoding(Charsets.UTF_8);
LanguageDescriptor _language = it.getLanguage();
final Procedure1<LanguageDescriptor> _function_1 = (LanguageDescriptor it_1) -> {
it_1.setName("org.xtext.example.mydsl.MyDsl");
it_1.setFileExtensions(LanguageDescriptor.FileExtensions.fromString("mydsl"));
};
ObjectExtensions.<LanguageDescriptor>operator_doubleArrow(_language, _function_1);
};
return ObjectExtensions.<WizardConfiguration>operator_doubleArrow(_wizardConfiguration, _function);
}
Aggregations