Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl/src/org/eclipse/osee/framework/core/dsl/GenerateOseeDsl.mwe2')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src/org/eclipse/osee/framework/core/dsl/GenerateOseeDsl.mwe247
1 files changed, 37 insertions, 10 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src/org/eclipse/osee/framework/core/dsl/GenerateOseeDsl.mwe2 b/plugins/org.eclipse.osee.framework.core.dsl/src/org/eclipse/osee/framework/core/dsl/GenerateOseeDsl.mwe2
index c009aa2a35..8348c701ad 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src/org/eclipse/osee/framework/core/dsl/GenerateOseeDsl.mwe2
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src/org/eclipse/osee/framework/core/dsl/GenerateOseeDsl.mwe2
@@ -10,7 +10,7 @@ var projectName = "org.eclipse.osee.framework.core.dsl"
var runtimeProject = "../${projectName}"
Workflow {
- bean = StandaloneSetup {
+ bean = StandaloneSetup {
platformUri = "${runtimeProject}/.."
}
@@ -34,13 +34,17 @@ Workflow {
// Java API to access grammar elements (required by several other fragments)
fragment = grammarAccess.GrammarAccessFragment {}
- // generates Java API for the generated EPackages
+ // generates Java API for the generated EPackages
fragment = ecore.EcoreGeneratorFragment {
// referencedGenModels = "uri to genmodel, uri to next genmodel"
}
+ fragment = serializer.SerializerFragment {
+ generateStub = false
+ }
+
// the serialization component
- fragment = parseTreeConstructor.ParseTreeConstructorFragment {}
+ // fragment = parseTreeConstructor.ParseTreeConstructorFragment {}
// a custom ResourceFactory for use with EMF
fragment = resourceFactory.ResourceFactoryFragment {
@@ -48,17 +52,17 @@ Workflow {
}
// The antlr parser generator fragment.
- fragment = parser.antlr.XtextAntlrGeneratorFragment {
- // options = {
- // backtrack = true
- // }
+ fragment = parser.antlr.XtextAntlrGeneratorFragment auto-inject {
+ antlrParam = "-Xconversiontimeout"
+ antlrParam = "200000"// options = {
+// backtrack = true
+// }
}
// java-based API for validation
fragment = validation.JavaValidatorFragment {
composedCheck = "org.eclipse.xtext.validation.ImportUriValidator"
- composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
- // registerForImportedPackages = true
+ composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"// registerForImportedPackages = true
}
// scoping and exporting API
@@ -70,6 +74,12 @@ Workflow {
fragment = exporting.QualifiedNamesFragment {}
fragment = builder.BuilderIntegrationFragment {}
+ // generator API
+ fragment = generator.GeneratorFragment {
+ generateMwe = false
+ generateJavaMain = false
+ }
+
// formatter API
fragment = formatting.FormatterFragment {}
@@ -87,13 +97,30 @@ Workflow {
fragment = contentAssist.JavaBasedContentAssistFragment {}
// generates a more lightweight Antlr parser and lexer tailored for content assist
- fragment = parser.antlr.XtextAntlrUiGeneratorFragment {}
+ fragment = parser.antlr.XtextAntlrUiGeneratorFragment auto-inject {
+ antlrParam = "-Xconversiontimeout"
+ antlrParam = "200000"
+ }
// project wizard (optional)
// fragment = projectWizard.SimpleProjectWizardFragment {
// generatorProjectName = "${projectName}.generator"
// modelFileExtension = file.extensions
// }
+
+ // renamerefactoring
+ fragment = refactoring.RefactorElementNameFragment {}
+ // provides the necessary bindings for java types integration
+ fragment = types.TypesGeneratorFragment {}
+ // generates the required bindings only if the grammar inherits fromXbase
+ fragment = xbase.XbaseGeneratorFragment {}
+ // provides a preference page for template proposals
+ fragment = templates.CodetemplatesGeneratorFragment {}
+ // provides a compare view
+ fragment = compare.CompareFragment {
+ fileExtensions = file.extensions
+ }
+
}
}
}

Back to the top