use of org.eclipse.xtext.xtext.wizard.WizardConfiguration 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.WizardConfiguration 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);
}
use of org.eclipse.xtext.xtext.wizard.WizardConfiguration in project xtext-core by eclipse.
the class CliWizardIntegrationTest method main.
/**
* Use this main method to update the expectations to whatever the wizard currently generates
*/
public static void main(final String[] args) {
final CliProjectsCreator creator = CliWizardIntegrationTest.newProjectCreator();
final Consumer<WizardConfiguration> _function = (WizardConfiguration config) -> {
try {
String _baseName = config.getBaseName();
final File targetLocation = new File("testdata/wizard-expectations", _baseName);
targetLocation.mkdirs();
Files.sweepFolder(targetLocation);
config.setRootLocation(targetLocation.getPath());
creator.createProjects(config);
String _baseName_1 = config.getBaseName();
String _plus = ("Updating expectations for " + _baseName_1);
InputOutput.<String>println(_plus);
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
};
CliWizardIntegrationTest.projectConfigs.forEach(_function);
}
Aggregations