Search in sources :

Example 11 with ProjectDescriptor

use of org.eclipse.xtext.xtext.wizard.ProjectDescriptor in project xtext-core by eclipse.

the class ParentProjectDescriptor method settingsGradle.

public CharSequence settingsGradle() {
    StringConcatenation _builder = new StringConcatenation();
    {
        final Function1<ProjectDescriptor, Boolean> _function = (ProjectDescriptor it) -> {
            return Boolean.valueOf(((!Objects.equal(it, this)) && it.isPartOfGradleBuild()));
        };
        Iterable<ProjectDescriptor> _filter = IterableExtensions.<ProjectDescriptor>filter(this.getConfig().getEnabledProjects(), _function);
        for (final ProjectDescriptor p : _filter) {
            {
                ProjectLayout _projectLayout = this.getConfig().getProjectLayout();
                boolean _equals = Objects.equal(_projectLayout, ProjectLayout.FLAT);
                if (_equals) {
                    _builder.append("includeFlat");
                } else {
                    _builder.append("include");
                }
            }
            _builder.append(" \'");
            String _name = p.getName();
            _builder.append(_name);
            _builder.append("\'");
            _builder.newLineIfNotEmpty();
        }
    }
    return _builder;
}
Also used : ProjectLayout(org.eclipse.xtext.xtext.wizard.ProjectLayout) ProjectDescriptor(org.eclipse.xtext.xtext.wizard.ProjectDescriptor) StringConcatenation(org.eclipse.xtend2.lib.StringConcatenation) Function1(org.eclipse.xtext.xbase.lib.Functions.Function1)

Aggregations

ProjectDescriptor (org.eclipse.xtext.xtext.wizard.ProjectDescriptor)11 StringConcatenation (org.eclipse.xtend2.lib.StringConcatenation)7 IdeProjectDescriptor (org.eclipse.xtext.xtext.wizard.IdeProjectDescriptor)7 TestProjectDescriptor (org.eclipse.xtext.xtext.wizard.TestProjectDescriptor)7 TestedProjectDescriptor (org.eclipse.xtext.xtext.wizard.TestedProjectDescriptor)7 UiProjectDescriptor (org.eclipse.xtext.xtext.wizard.UiProjectDescriptor)6 WebProjectDescriptor (org.eclipse.xtext.xtext.wizard.WebProjectDescriptor)6 RuntimeProjectDescriptor (org.eclipse.xtext.xtext.wizard.RuntimeProjectDescriptor)4 IntellijProjectDescriptor (org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor)3 ProjectLayout (org.eclipse.xtext.xtext.wizard.ProjectLayout)3 RuntimeTestProjectDescriptor (org.eclipse.xtext.xtext.wizard.RuntimeTestProjectDescriptor)3 Charset (java.nio.charset.Charset)2 ExternalDependency (org.eclipse.xtext.xtext.wizard.ExternalDependency)2 PomFile (org.eclipse.xtext.xtext.wizard.PomFile)2 Test (org.junit.Test)2 ArrayList (java.util.ArrayList)1 LinkedHashSet (java.util.LinkedHashSet)1 Set (java.util.Set)1 XtextVersion (org.eclipse.xtext.util.XtextVersion)1 Function1 (org.eclipse.xtext.xbase.lib.Functions.Function1)1