Permalink
Browse files

Formatted MWE2-files of the new-project-wizard, the ecore2xtext-wizar…

…d, and the examples nicely.
  • Loading branch information...
1 parent ed212b7 commit 05f8323590f801a34cafea7e15c2ed2c60894018 meysholdt committed May 18, 2010
@@ -17,73 +17,66 @@ var projectName = "org.eclipse.xtext.example.arithmetics"
var runtimeProject = "../${projectName}"
Workflow {
- bean = StandaloneSetup {
+ bean = StandaloneSetup {
platformUri = "${runtimeProject}/.."
}
-
+
component = DirectoryCleaner {
directory = "${runtimeProject}/src-gen"
}
-
+
component = DirectoryCleaner {
directory = "${runtimeProject}.ui/src-gen"
}
-
+
component = Generator {
pathRtProject = runtimeProject
pathUiProject = "${runtimeProject}.ui"
projectNameRt = projectName
projectNameUi = "${projectName}.ui"
-
language = LanguageConfig {
uri = grammarURI
fileExtensions = file.extensions
-
+
// Java API to access grammar elements (required by several other fragments)
fragment = grammarAccess.GrammarAccessFragment {}
-
+
// generates Java API for the generated EPackages
fragment = ecore.EcoreGeneratorFragment {
// referencedGenModels = "uri to genmodel, uri to next genmodel"
}
-
+
// the serialization component
fragment = parseTreeConstructor.ParseTreeConstructorFragment {}
-
+
// a custom ResourceFactory for use with EMF
fragment = resourceFactory.ResourceFactoryFragment {
fileExtensions = file.extensions
}
-
+
// the following fragment tries to use the Antlr Generator fragment which can be installed via update manager from http://download.itemis.com/updates/
fragment = AntlrDelegatingFragment {}
-
- /*
- If you don't want to use the Antlr fragment for some reason, remove the antlr fragment and uncomment the packrat parser fragment below.
- fragment = parser.PackratParserFragment {}
- */
-
+
+ // If you don't want to use the Antlr fragment for some reason, remove the antlr fragment and uncomment the packrat parser fragment below.
+ // fragment = parser.PackratParserFragment {}
+
// check-based API for validation
- /*
- fragment = validation.CheckFragment {}
- */
-
+ //fragment = validation.CheckFragment {}
+
// java-based API for validation
fragment = validation.JavaValidatorFragment {
- composedCheck = "org.eclipse.xtext.validation.ImportUriValidator"
- composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
- }
-
+ composedCheck = "org.eclipse.xtext.validation.ImportUriValidator"
+ composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
+ }
+
// scoping and exporting API
- /*
- fragment = scoping.ImportURIScopingFragment {}
- fragment = exporting.SimpleNamesFragment {}
- */
-
+ //fragment = scoping.ImportURIScopingFragment {}
+ //fragment = exporting.SimpleNamesFragment {}
+
// scoping and exporting API
fragment = scoping.ImportNamespacesScopingFragment {}
fragment = exporting.QualifiedNamesFragment {}
-
+
// formatter API
fragment = formatting.FormatterFragment {}
@@ -97,27 +90,27 @@ Workflow {
// java-based API for content assistance
fragment = contentAssist.JavaBasedContentAssistFragment {}
-
+
// the following fragment tries to use the Antlr based content assist
// fragment which can be downloaded from http://www.itemis.com
// and will be ignored if it's not available.
- fragment = DelegatingGeneratorFragment {
+ fragment = DelegatingGeneratorFragment {
delegate = "de.itemis.xtext.antlr.XtextAntlrUiGeneratorFragment"
- message="You are generating without ANTLR. It is highly recommended to download and use the plugin \'de.itemis.xtext.antlr\' \n\t using the update site http:\//download.itemis.com/updates/."
+ message =
+ "You are generating without ANTLR. It is highly recommended to download and use the plugin \'de.itemis.xtext.antlr\' \n\t using the update site http://download.itemis.com/updates/."
}
fragment = builder.BuilderIntegrationFragment {}
// project wizard (optional)
- /*
- fragment = projectWizard.SimpleProjectWizardFragment {
- generatorProjectName = "${projectName}.generator"
- modelFileExtension = file.extensions
- }
- */
-
+
+ //fragment = projectWizard.SimpleProjectWizardFragment {
+ // generatorProjectName = "${projectName}.generator"
+ // modelFileExtension = file.extensions
+ //}
+
// quickfix API
- fragment = quickfix.QuickfixProviderFragment {}
+ fragment = quickfix.QuickfixProviderFragment {}
}
}
}
@@ -17,73 +17,72 @@ var projectName = "org.eclipse.xtext.example.domainmodel"
var runtimeProject = "../${projectName}"
Workflow {
-
+
bean = StandaloneSetup {
platformUri = "${runtimeProject}/.."
}
-
+
component = DirectoryCleaner {
directory = "${runtimeProject}/src-gen"
}
-
+
component = DirectoryCleaner {
directory = "${runtimeProject}.ui/src-gen"
}
-
+
component = Generator {
pathRtProject = runtimeProject
pathUiProject = "${runtimeProject}.ui"
projectNameRt = projectName
projectNameUi = "${projectName}.ui"
activator = "org.eclipse.xtext.example.ui.internal.DomainmodelActivator"
-
language = {
uri = grammarURI
fileExtensions = file.extensions
// Java API to access grammar elements (required by several other fragments)
fragment = grammarAccess.GrammarAccessFragment {}
-
+
// Generate java classes for Ecore models
fragment = ecore.EcoreGeneratorFragment {}
-
+
// the serialization component
fragment = parseTreeConstructor.ParseTreeConstructorFragment {}
-
+
// a custom ResourceFactory for use with EMF
fragment = resourceFactory.ResourceFactoryFragment {
fileExtensions = file.extensions
}
-
+
// the following fragment tries to use the Antlr Generator fragment which can be installed via update manager from http://download.itemis.com/updates/ -->
fragment = de.itemis.xtext.antlr.XtextAntlrGeneratorFragment {
options = {
backtrack = true
classSplitting = true
}
}
-
+
// java-based API for validation
fragment = validation.JavaValidatorFragment {}
-
+
// scoping API
fragment = scoping.ImportNamespacesScopingFragment {}
fragment = exporting.QualifiedNamesFragment {}
-
+
// formatter API
fragment = formatting.FormatterFragment {}
// labeling API
fragment = labeling.LabelProviderFragment {}
-
+
// outline API
fragment = outline.OutlineNodeAdapterFactoryFragment {}
fragment = outline.TransformerFragment {}
fragment = outline.QuickOutlineFragment {}
// java-based API for content assistance
fragment = contentAssist.JavaBasedContentAssistFragment {}
- fragment = de.itemis.xtext.antlr.XtextAntlrUiGeneratorFragment {
+ fragment = de.itemis.xtext.antlr.XtextAntlrUiGeneratorFragment {
options = {
backtrack = true
classSplitting = true
@@ -93,7 +92,7 @@ Workflow {
fragment = builder.BuilderIntegrationFragment {}
// quickfix API
- fragment = quickfix.QuickfixProviderFragment {}
+ fragment = quickfix.QuickfixProviderFragment {}
}
}
}
@@ -17,57 +17,56 @@ var projectName = "org.eclipse.xtext.example.fowlerdsl"
var runtimeProject = "../${projectName}"
Workflow {
-
+
bean = StandaloneSetup {
platformUri = "${runtimeProject}/.."
}
-
+
component = DirectoryCleaner {
directory = "${runtimeProject}/src-gen"
}
-
+
component = DirectoryCleaner {
directory = "${runtimeProject}.ui/src-gen"
}
-
+
component = Generator {
pathRtProject = runtimeProject
pathUiProject = "${runtimeProject}.ui"
projectNameRt = projectName
projectNameUi = "${projectName}.ui"
-
language = {
uri = grammarURI
fileExtensions = file.extensions
// Java API to access grammar elements (required by several other fragments)
fragment = grammarAccess.GrammarAccessFragment {}
-
+
// Generate java classes for Ecore models
fragment = ecore.EcoreGeneratorFragment {}
-
+
// the serialization component
fragment = parseTreeConstructor.ParseTreeConstructorFragment {}
-
+
// a custom ResourceFactory for use with EMF
fragment = resourceFactory.ResourceFactoryFragment {
fileExtensions = file.extensions
}
-
+
// the following fragment tries to use the Antlr Generator fragment which can be installed via update manager from http://download.itemis.com/updates/ -->
fragment = de.itemis.xtext.antlr.XtextAntlrGeneratorFragment {}
-
+
// Check based validation
fragment = validation.CheckFragment {}
-
+
// labeling API
fragment = labeling.LabelProviderFragment {}
-
+
// outline API
fragment = outline.OutlineNodeAdapterFactoryFragment {}
fragment = outline.TransformerFragment {}
fragment = outline.QuickOutlineFragment {}
-
+
// java-based API for content assistance
fragment = contentAssist.JavaBasedContentAssistFragment {}
fragment = de.itemis.xtext.antlr.XtextAntlrUiGeneratorFragment {}
Oops, something went wrong.

0 comments on commit 05f8323

Please sign in to comment.