Search in sources :

Example 1 with ProjectMapping

use of org.eclipse.emf.mwe.utils.ProjectMapping in project xtext-core by eclipse.

the class XtextGeneratorStandaloneSetup method setup.

private void setup() {
    final StandaloneSetup delegate = new StandaloneSetup();
    delegate.setScanClassPath(this.scanClasspath);
    final Consumer<Pair<String, String>> _function = (Pair<String, String> mapping) -> {
        ProjectMapping _projectMapping = new ProjectMapping();
        final Procedure1<ProjectMapping> _function_1 = (ProjectMapping it) -> {
            it.setProjectName(mapping.getKey());
            it.setPath(mapping.getValue());
        };
        ProjectMapping _doubleArrow = ObjectExtensions.<ProjectMapping>operator_doubleArrow(_projectMapping, _function_1);
        delegate.addProjectMapping(_doubleArrow);
    };
    this.getProjectMappings().forEach(_function);
}
Also used : Procedure1(org.eclipse.xtext.xbase.lib.Procedures.Procedure1) StandaloneSetup(org.eclipse.emf.mwe.utils.StandaloneSetup) ProjectMapping(org.eclipse.emf.mwe.utils.ProjectMapping) Pair(org.eclipse.xtext.xbase.lib.Pair)

Aggregations

ProjectMapping (org.eclipse.emf.mwe.utils.ProjectMapping)1 StandaloneSetup (org.eclipse.emf.mwe.utils.StandaloneSetup)1 Pair (org.eclipse.xtext.xbase.lib.Pair)1 Procedure1 (org.eclipse.xtext.xbase.lib.Procedures.Procedure1)1