Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Adding a genmodl to the workflow(How to add a genmodl to the mwe2 workflow)
Adding a genmodl to the workflow [message #1765631] Mon, 12 June 2017 17:46 Go to next message
Eclipse UserFriend
Hi,

I have the following workflow:

Workflow {
    
	component = XtextGenerator {
		configuration = {
			project = StandardProjectConfig {
				baseName = "de.mdsd.xtext.support.name.provider.model"
				rootPath = rootPath
				runtimeTest = {
					enabled = true
				}
				eclipsePlugin = {
					enabled = true
				}
				eclipsePluginTest = {
					enabled = true
				}
				createEclipseMetaData = true
			}
			code = {
				encoding = "UTF-8"
				fileHeader = "/*\n * generated by Xtext \${version}\n */"
			}
		}
		language = StandardLanguage {
			name = "de.mdsd.xtext.support.name.provider.model.NameProviderModel"
			fileExtensions = "npm"

			serializer = {
				generateStub = false
			}
			validator = {
				// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
			}
		}
	}
	
}

Where and how to add a genmodel for an imported grammar?
Re: Adding a genmodl to the workflow [message #1765632 is a reply to message #1765631] Mon, 12 June 2017 18:00 Go to previous messageGo to next message
Eclipse UserFriend
It is part of the language configuration XtextGeneratorLanguage#addReferencedResource.

language = {
   ...
   referencedResource = "platform:/resource/......genmodel"
}
Re: Adding a genmodl to the workflow [message #1765639 is a reply to message #1765632] Mon, 12 June 2017 20:30 Go to previous message
Eclipse UserFriend
Thank you for the quick answer. That does the trick.
Previous Topic:Grammar mixin
Next Topic:Using an Xbase subset
Goto Forum:
  


Current Time: Sun Aug 31 13:02:08 EDT 2025

Powered by FUDForum. Page generated in 0.08021 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top