use of org.eclipse.xtext.xtext.wizard.SourceLayout in project xtext-core by eclipse.
the class WebProjectDescriptor method pom.
@Override
public PomFile pom() {
PomFile _pom = super.pom();
final Procedure1<PomFile> _function = (PomFile it) -> {
it.setPackaging("war");
StringConcatenation _builder = new StringConcatenation();
_builder.append("<build>");
_builder.newLine();
{
SourceLayout _sourceLayout = this.getConfig().getSourceLayout();
boolean _equals = Objects.equal(_sourceLayout, SourceLayout.PLAIN);
if (_equals) {
_builder.append("\t");
_builder.append("<sourceDirectory>");
String _sourceFolder = this.sourceFolder(Outlet.MAIN_JAVA);
_builder.append(_sourceFolder, "\t");
_builder.append("</sourceDirectory>");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("<resources>");
_builder.newLine();
_builder.append("\t");
_builder.append("\t");
_builder.append("<resource>");
_builder.newLine();
_builder.append("\t");
_builder.append("\t\t");
_builder.append("<directory>");
String _sourceFolder_1 = this.sourceFolder(Outlet.MAIN_RESOURCES);
_builder.append(_sourceFolder_1, "\t\t\t");
_builder.append("</directory>");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("\t\t");
_builder.append("<excludes>");
_builder.newLine();
_builder.append("\t");
_builder.append("\t\t\t");
_builder.append("<exclude>**/*.java</exclude>");
_builder.newLine();
_builder.append("\t");
_builder.append("\t\t\t");
_builder.append("<exclude>**/*.xtend</exclude>");
_builder.newLine();
_builder.append("\t");
_builder.append("\t\t");
_builder.append("</excludes>");
_builder.newLine();
_builder.append("\t");
_builder.append("\t");
_builder.append("</resource>");
_builder.newLine();
_builder.append("\t");
_builder.append("</resources>");
_builder.newLine();
}
}
_builder.append("\t");
_builder.append("<plugins>");
_builder.newLine();
_builder.append("\t\t");
_builder.append("<plugin>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<groupId>org.eclipse.xtend</groupId>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<artifactId>xtend-maven-plugin</artifactId>");
_builder.newLine();
_builder.append("\t\t");
_builder.append("</plugin>");
_builder.newLine();
_builder.append("\t\t");
_builder.append("<plugin>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<artifactId>maven-war-plugin</artifactId>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<version>3.2.0</version>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<configuration>");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("<warSourceDirectory>");
String _sourceFolder_2 = this.sourceFolder(Outlet.WEBAPP);
_builder.append(_sourceFolder_2, "\t\t\t\t");
_builder.append("</warSourceDirectory>");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t\t");
_builder.append("<failOnMissingWebXml>false</failOnMissingWebXml>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("</configuration>");
_builder.newLine();
_builder.append("\t\t");
_builder.append("</plugin>");
_builder.newLine();
_builder.append("\t\t");
_builder.append("<plugin>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<groupId>org.eclipse.jetty</groupId>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<artifactId>jetty-maven-plugin</artifactId>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<version>9.2.13.v20150730</version>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<configuration>");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("<webAppSourceDirectory>");
String _sourceFolder_3 = this.sourceFolder(Outlet.WEBAPP);
_builder.append(_sourceFolder_3, "\t\t\t\t");
_builder.append("</webAppSourceDirectory>");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t");
_builder.append("</configuration>");
_builder.newLine();
_builder.append("\t\t");
_builder.append("</plugin>");
_builder.newLine();
_builder.append("\t\t");
_builder.append("<plugin>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<groupId>org.codehaus.mojo</groupId>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<artifactId>build-helper-maven-plugin</artifactId>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<version>1.9.1</version>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<executions>");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("<execution>");
_builder.newLine();
_builder.append("\t\t\t\t\t");
_builder.append("<id>add-source</id>");
_builder.newLine();
_builder.append("\t\t\t\t\t");
_builder.append("<phase>initialize</phase>");
_builder.newLine();
_builder.append("\t\t\t\t\t");
_builder.append("<goals>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t");
_builder.append("<goal>add-source</goal>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t");
_builder.append("<goal>add-resource</goal>");
_builder.newLine();
_builder.append("\t\t\t\t\t");
_builder.append("</goals>");
_builder.newLine();
_builder.append("\t\t\t\t\t");
_builder.append("<configuration>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t");
_builder.append("<sources>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t\t");
_builder.append("<source>");
String _sourceFolder_4 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
_builder.append(_sourceFolder_4, "\t\t\t\t\t\t\t");
_builder.append("</source>");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t\t\t\t");
_builder.append("</sources>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t");
_builder.append("<resources>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t\t");
_builder.append("<resource>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t\t\t");
_builder.append("<directory>");
String _sourceFolder_5 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
_builder.append(_sourceFolder_5, "\t\t\t\t\t\t\t\t");
_builder.append("</directory>");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t\t\t\t\t\t");
_builder.append("<excludes>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t\t\t\t");
_builder.append("<exclude>**/*.java</exclude>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t\t\t");
_builder.append("</excludes>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t\t");
_builder.append("</resource>");
_builder.newLine();
_builder.append("\t\t\t\t\t\t");
_builder.append("</resources>");
_builder.newLine();
_builder.append("\t\t\t\t\t");
_builder.append("</configuration>");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("</execution>");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("</executions>");
_builder.newLine();
_builder.append("\t\t");
_builder.append("</plugin>");
_builder.newLine();
_builder.append("\t");
_builder.append("</plugins>");
_builder.newLine();
_builder.append("</build>");
_builder.newLine();
it.setBuildSection(_builder.toString());
};
return ObjectExtensions.<PomFile>operator_doubleArrow(_pom, _function);
}
use of org.eclipse.xtext.xtext.wizard.SourceLayout in project xtext-core by eclipse.
the class ParentProjectDescriptor method sourceLayoutGradle.
public CharSequence sourceLayoutGradle() {
StringConcatenation _builder = new StringConcatenation();
{
SourceLayout _sourceLayout = this.getConfig().getSourceLayout();
boolean _equals = Objects.equal(_sourceLayout, SourceLayout.PLAIN);
if (_equals) {
_builder.append("if (name.endsWith(\".tests\")) {");
_builder.newLine();
_builder.append("\t");
_builder.append("sourceSets {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("main {");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("java.srcDirs = []");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("resources.srcDirs = []");
_builder.newLine();
_builder.append("\t\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t\t");
_builder.append("test {");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("java.srcDirs = [\'");
String _sourceFolder = this.sourceFolder(Outlet.TEST_JAVA);
_builder.append(_sourceFolder, "\t\t\t");
_builder.append("\', \'");
String _sourceFolder_1 = this.sourceFolder(Outlet.TEST_SRC_GEN);
_builder.append(_sourceFolder_1, "\t\t\t");
_builder.append("\']");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t");
_builder.append("resources.srcDirs = [\'");
String _sourceFolder_2 = this.sourceFolder(Outlet.TEST_RESOURCES);
_builder.append(_sourceFolder_2, "\t\t\t");
_builder.append("\', \'");
String _sourceFolder_3 = this.sourceFolder(Outlet.TEST_SRC_GEN);
_builder.append(_sourceFolder_3, "\t\t\t");
_builder.append("\']");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t");
_builder.append("xtendOutputDir = \'");
String _sourceFolder_4 = this.sourceFolder(Outlet.TEST_XTEND_GEN);
_builder.append(_sourceFolder_4, "\t\t\t");
_builder.append("\'");
_builder.newLineIfNotEmpty();
_builder.append("\t\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("} else {");
_builder.newLine();
_builder.append("\t");
_builder.append("sourceSets {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("main {");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("java.srcDirs = [\'");
String _sourceFolder_5 = this.sourceFolder(Outlet.MAIN_JAVA);
_builder.append(_sourceFolder_5, "\t\t\t");
_builder.append("\', \'");
String _sourceFolder_6 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
_builder.append(_sourceFolder_6, "\t\t\t");
_builder.append("\']");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t");
_builder.append("resources.srcDirs = [\'");
String _sourceFolder_7 = this.sourceFolder(Outlet.MAIN_RESOURCES);
_builder.append(_sourceFolder_7, "\t\t\t");
_builder.append("\', \'");
String _sourceFolder_8 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
_builder.append(_sourceFolder_8, "\t\t\t");
_builder.append("\']");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t");
_builder.append("xtendOutputDir = \'");
String _sourceFolder_9 = this.sourceFolder(Outlet.MAIN_XTEND_GEN);
_builder.append(_sourceFolder_9, "\t\t\t");
_builder.append("\'");
_builder.newLineIfNotEmpty();
_builder.append("\t\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t\t");
_builder.append("test {");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("java.srcDirs = []");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("resources.srcDirs = []");
_builder.newLine();
_builder.append("\t\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.newLine();
_builder.append("sourceSets.all {");
_builder.newLine();
_builder.append("\t");
_builder.append("resources.exclude \'**/*.g\', \'**/*.mwe2\', \'**/*.xtend\', \'**/*._trace\'");
_builder.newLine();
_builder.append("}");
_builder.newLine();
} else {
_builder.append("sourceSets {");
_builder.newLine();
_builder.append("\t");
_builder.append("main {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("java.srcDirs = [\'");
String _sourceFolder_10 = this.sourceFolder(Outlet.MAIN_JAVA);
_builder.append(_sourceFolder_10, "\t\t");
_builder.append("\', \'");
String _sourceFolder_11 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
_builder.append(_sourceFolder_11, "\t\t");
_builder.append("\']");
_builder.newLineIfNotEmpty();
_builder.append("\t\t");
_builder.append("resources.srcDirs = [\'");
String _sourceFolder_12 = this.sourceFolder(Outlet.MAIN_RESOURCES);
_builder.append(_sourceFolder_12, "\t\t");
_builder.append("\', \'");
String _sourceFolder_13 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
_builder.append(_sourceFolder_13, "\t\t");
_builder.append("\']");
_builder.newLineIfNotEmpty();
_builder.append("\t\t");
_builder.append("xtendOutputDir = \'");
String _sourceFolder_14 = this.sourceFolder(Outlet.MAIN_XTEND_GEN);
_builder.append(_sourceFolder_14, "\t\t");
_builder.append("\'");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t");
_builder.append("test {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("java.srcDirs = [\'");
String _sourceFolder_15 = this.sourceFolder(Outlet.TEST_JAVA);
_builder.append(_sourceFolder_15, "\t\t");
_builder.append("\', \'");
String _sourceFolder_16 = this.sourceFolder(Outlet.TEST_SRC_GEN);
_builder.append(_sourceFolder_16, "\t\t");
_builder.append("\']");
_builder.newLineIfNotEmpty();
_builder.append("\t\t");
_builder.append("resources.srcDirs = [\'");
String _sourceFolder_17 = this.sourceFolder(Outlet.TEST_RESOURCES);
_builder.append(_sourceFolder_17, "\t\t");
_builder.append("\', \'");
String _sourceFolder_18 = this.sourceFolder(Outlet.TEST_SRC_GEN);
_builder.append(_sourceFolder_18, "\t\t");
_builder.append("\']");
_builder.newLineIfNotEmpty();
_builder.append("\t\t");
_builder.append("xtendOutputDir = \'");
String _sourceFolder_19 = this.sourceFolder(Outlet.TEST_XTEND_GEN);
_builder.append(_sourceFolder_19, "\t\t");
_builder.append("\'");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
}
}
_builder.newLine();
_builder.append("jar {");
_builder.newLine();
_builder.append("\t");
_builder.append("from(\'model\') {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("into(\'model\')");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
{
SourceLayout _sourceLayout_1 = this.getConfig().getSourceLayout();
boolean _notEquals = (!Objects.equal(_sourceLayout_1, SourceLayout.PLAIN));
if (_notEquals) {
_builder.append("\t");
_builder.append("from(sourceSets.main.allSource) {");
_builder.newLine();
_builder.append("\t");
_builder.append("\t");
_builder.append("include \'**/*.xtext\'");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
}
}
_builder.append("\t");
_builder.append("manifest {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("attributes \'Bundle-SymbolicName\': project.name");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
_builder.newLine();
_builder.append("plugins.withId(\'war\') {");
_builder.newLine();
_builder.append("\t");
_builder.append("webAppDirName = \"");
String _sourceFolder_20 = this.sourceFolder(Outlet.WEBAPP);
_builder.append(_sourceFolder_20, "\t");
_builder.append("\"");
_builder.newLineIfNotEmpty();
_builder.append("}");
_builder.newLine();
_builder.newLine();
_builder.append("plugins.withId(\'org.xtext.idea-plugin\') {");
_builder.newLine();
_builder.append("\t");
_builder.append("assembleSandbox.metaInf.from(\'");
String _sourceFolder_21 = this.sourceFolder(Outlet.META_INF);
_builder.append(_sourceFolder_21, "\t");
_builder.append("\')");
_builder.newLineIfNotEmpty();
_builder.append("}");
_builder.newLine();
return _builder;
}
use of org.eclipse.xtext.xtext.wizard.SourceLayout in project xtext-core by eclipse.
the class RuntimeProjectDescriptor method workflow.
public CharSequence workflow() {
StringConcatenation _builder = new StringConcatenation();
_builder.append("module ");
String _basePackagePath = this.getConfig().getLanguage().getBasePackagePath();
String _plus = (_basePackagePath + "/Generate");
String _simpleName = this.getConfig().getLanguage().getSimpleName();
String _replaceAll = (_plus + _simpleName).replaceAll("/", ".");
_builder.append(_replaceAll);
_builder.newLineIfNotEmpty();
_builder.newLine();
_builder.append("import org.eclipse.xtext.xtext.generator.*");
_builder.newLine();
_builder.append("import org.eclipse.xtext.xtext.generator.model.project.*");
_builder.newLine();
_builder.newLine();
_builder.append("var rootPath = \"..\"");
_builder.newLine();
_builder.newLine();
_builder.append("Workflow {");
_builder.newLine();
_builder.append("\t");
_builder.newLine();
_builder.append("\t");
_builder.append("component = XtextGenerator {");
_builder.newLine();
_builder.append("\t\t");
_builder.append("configuration = {");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("project = StandardProjectConfig {");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("baseName = \"");
String _name = this.getName();
_builder.append(_name, "\t\t\t\t");
_builder.append("\"");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t\t");
_builder.append("rootPath = rootPath");
_builder.newLine();
{
boolean _isEnabled = this.testProject.isEnabled();
if (_isEnabled) {
_builder.append("\t\t\t\t");
_builder.append("runtimeTest = {");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("\t");
_builder.append("enabled = true");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("}");
_builder.newLine();
}
}
{
if ((this.getConfig().getIdeProject().isEnabled() && (!IterableExtensions.exists(Collections.<ProjectDescriptor>unmodifiableList(CollectionLiterals.<ProjectDescriptor>newArrayList(this.getConfig().getWebProject(), this.getConfig().getIntellijProject(), this.getConfig().getUiProject())), ((Function1<ProjectDescriptor, Boolean>) (ProjectDescriptor it) -> {
return Boolean.valueOf(it.isEnabled());
}))))) {
_builder.append("\t\t\t\t");
_builder.append("genericIde = {");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("\t");
_builder.append("enabled = true");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("}");
_builder.newLine();
}
}
{
boolean _isEnabled_1 = this.getConfig().getUiProject().isEnabled();
if (_isEnabled_1) {
_builder.append("\t\t\t\t");
_builder.append("eclipsePlugin = {");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("\t");
_builder.append("enabled = true");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("}");
_builder.newLine();
}
}
{
boolean _isEnabled_2 = this.getConfig().getUiProject().getTestProject().isEnabled();
if (_isEnabled_2) {
_builder.append("\t\t\t\t");
_builder.append("eclipsePluginTest = {");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("\t");
_builder.append("enabled = true");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("}");
_builder.newLine();
}
}
{
boolean _isEnabled_3 = this.getConfig().getIntellijProject().isEnabled();
if (_isEnabled_3) {
_builder.append("\t\t\t\t");
_builder.append("ideaPlugin = {");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("\t");
_builder.append("enabled = true");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("}");
_builder.newLine();
}
}
{
boolean _isEnabled_4 = this.getConfig().getWebProject().isEnabled();
if (_isEnabled_4) {
_builder.append("\t\t\t\t");
_builder.append("web = {");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("\t");
_builder.append("enabled = true");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("}");
_builder.newLine();
}
}
{
SourceLayout _sourceLayout = this.getConfig().getSourceLayout();
boolean _equals = Objects.equal(_sourceLayout, SourceLayout.MAVEN);
if (_equals) {
_builder.append("\t\t\t\t");
_builder.append("mavenLayout = true");
_builder.newLine();
}
}
{
boolean _isEclipsePluginProject = this.isEclipsePluginProject();
if (_isEclipsePluginProject) {
_builder.append("\t\t\t\t");
_builder.append("createEclipseMetaData = true");
_builder.newLine();
}
}
_builder.append("\t\t\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("code = {");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("encoding = \"");
Charset _encoding = this.getConfig().getEncoding();
_builder.append(_encoding, "\t\t\t\t");
_builder.append("\"");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t\t");
_builder.append("lineDelimiter = \"");
String _convertToJavaString = Strings.convertToJavaString(this.getConfig().getLineDelimiter());
_builder.append(_convertToJavaString, "\t\t\t\t");
_builder.append("\"");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t\t");
_builder.append("fileHeader = \"/*\\n * generated by Xtext \\${version}\\n */\"");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t\t");
_builder.append("language = StandardLanguage {");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("name = \"");
String _name_1 = this.getConfig().getLanguage().getName();
_builder.append(_name_1, "\t\t\t");
_builder.append("\"");
_builder.newLineIfNotEmpty();
_builder.append("\t\t\t");
_builder.append("fileExtensions = \"");
LanguageDescriptor.FileExtensions _fileExtensions = this.getConfig().getLanguage().getFileExtensions();
_builder.append(_fileExtensions, "\t\t\t");
_builder.append("\"");
_builder.newLineIfNotEmpty();
{
boolean _isEmpty = this.getConfig().getEcore2Xtext().getEPackageInfos().isEmpty();
boolean _not = (!_isEmpty);
if (_not) {
{
final Function1<EPackageInfo, String> _function = (EPackageInfo it) -> {
return it.getGenmodelURI().toString();
};
Set<String> _set = IterableExtensions.<String>toSet(IterableExtensions.<EPackageInfo, String>map(this.getConfig().getEcore2Xtext().getEPackageInfos(), _function));
for (final String genmodelURI : _set) {
_builder.append("\t\t\t");
_builder.append("referencedResource = \"");
_builder.append(genmodelURI, "\t\t\t");
_builder.append("\"");
_builder.newLineIfNotEmpty();
}
}
}
}
{
boolean _isFromExistingEcoreModels = this.isFromExistingEcoreModels();
if (_isFromExistingEcoreModels) {
_builder.append("\t\t\t");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("fragment = ecore2xtext.Ecore2XtextValueConverterServiceFragment2 auto-inject {}");
_builder.newLine();
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("formatter = {");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("\t");
_builder.append("generateStub = true");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("}");
_builder.newLine();
}
}
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("serializer = {");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("generateStub = false");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("validator = {");
_builder.newLine();
_builder.append("\t\t\t\t");
_builder.append("// composedCheck = \"org.eclipse.xtext.validation.NamesAreUniqueValidator\"");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t\t");
_builder.append("}");
_builder.newLine();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
_builder.append("}");
_builder.newLine();
return _builder;
}
Aggregations