Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to register Packages in the global EPackage.Registry Instance?
How to register Packages in the global EPackage.Registry Instance? [message #1733796] Wed, 01 June 2016 03:15 Go to next message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
Hi,
I have this workflow configuration:

 Workflow {
       
        component = eclipse.emf.mwe.utils.DirectoryCleaner {
            directory = "${runtimeProject}/src-gen"
        }
        
        component = XtextGenerator {
		configuration = {
			project = StandardProjectConfig {
				baseName = "xtext"
				rootPath = rootPath
				runtimeTest = {
					enabled = false
				}
				eclipsePlugin = {
					enabled = false
				}
				eclipsePluginTest = {
					enabled = false
				}
				createEclipseMetaData = false
			}
			code = {
				encoding = "windows-1252"
				fileHeader = "/*\n * generated by Xtext \${version}\n */"
			}
		}
		
		language = StandardLanguage {
			//resourceSet = rs
			referencedResource = resource1
			referencedResource = resource2
			referencedResource = resource3
			name = "org.myDsl"
			fileExtensions = fileExtensions
			generator = generator.GeneratorFragment2 {
				generateJavaMain = false
				generateMwe = false
				generateStub = false
				generateXtendMain = false
				generateXtendStub = false
			}
			serializer = {
				generateStub = false
			}
			validator = {
				// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
			}
		}


When I try to run MWE2 Workflow, I get this message in my console:
3245 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Using resourceSet registry. The registered Packages will not be registered in the global EPackage.Registry.INSTANCE!

How can I add my packages to the global EPackage.Registry.INSTANCE?

Thank you.
Re: How to register Packages in the global EPackage.Registry Instance? [message #1733801 is a reply to message #1733796] Wed, 01 June 2016 04:43 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13223
Registered: July 2009
Senior Member
why do you want this? it should work as you have it

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Wed, 01 June 2016 04:44]

Report message to a moderator

Re: How to register Packages in the global EPackage.Registry Instance? [message #1733817 is a reply to message #1733801] Wed, 01 June 2016 07:38 Go to previous message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
Hi Christian,
I don't need this anymore as I have switched to the older workflow. I was initially planning to update my workflow , but decided against it as the generated contents contains warnings about unused imports.

Thanks for your support. Very Happy
Previous Topic:Unresolved proxy classpath.. Make sure the EPackage has been registered.
Next Topic:Scoping and Overload Resolution
Goto Forum:
  


Current Time: Fri Nov 22 12:29:27 GMT 2019

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

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

Back to the top