Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » UI plug-ins loaded when creating Xtext resource
UI plug-ins loaded when creating Xtext resource [message #736746] Fri, 14 October 2011 09:39 Go to next message
Roland S. is currently offline Roland S.Friend
Messages: 36
Registered: September 2009
Member
Hi,

we are using a automatic build system on a server that has no GUI installed. Since we migrated to Xtext 2.0 some of our JUnit tests fail because UI plug-ins are loaded once a Xtext resource is created:

org.eclipse.emf.common.util.WrappedException: org.eclipse.core.runtime.CoreException: Plug-in on.modelica.xtext.ui was unable to load class on.modelica.xtext.ui.ModelicaExecutableExtensionFactory. at org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescriptor.createInstance(RegistryReader.java:176) at org.eclipse.emf.ecore.plugin.RegistryReader$ResourceFactoryDescriptor.createFactory(RegistryReader.java:194) at org.eclipse.emf.ecore.resource.impl.ResourceFactoryRegistryImpl.convert(ResourceFactoryRegistryImpl.java:99) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$2.delegatedGetFactory(ResourceSetImpl.java:449) at org.eclipse.emf.ecore.resource.impl.ResourceFactoryRegistryImpl.getFactory(ResourceFactoryRegistryImpl.java:151) at org.eclipse.emf.ecore.resource.impl.ResourceFactoryRegistryImpl.getFactory(ResourceFactoryRegistryImpl.java:92) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.createResource(ResourceSetImpl.java:422) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.createResource(ResourceSetImpl.java:414) at 
...


Will the dependency to UI plug-ins be removed in future versions or is there a workaround?

Roland
Re: UI plug-ins loaded when creating Xtext resource [message #736783 is a reply to message #736746] Fri, 14 October 2011 10:25 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

this sounds like an error in your test/plugin deps setup to me.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Qualified Name Provider
Next Topic:Example for import in grammar?
Goto Forum:
  


Current Time: Sat Apr 20 01:30:27 GMT 2024

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

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

Back to the top