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;
}
Aggregations