Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » (no subject)
(no subject) [message #687299] Fri, 27 May 2011 14:42
Eclipse UserFriend
Originally posted by: <forums-noreply

Hi Saurav,

for testing i have downloaded Xtext 1.0.2 Distribution (Helios). In the first try i used the existing workspace and it doesn't work first, there was a problem with xtext and i installed a new Xtext 2.0, but there was still Problems. Then i try with something in this eclipse and with me preinstalled eclipse. Then i want to write you the problem (suddenly it was the same problem in both eclipse versions! So i "installed" the Xtext 1.0.2 eclipse again, to explain what i have done, but this time, i create a new workspace and only import the two neccessary plugins and then it works :) with a change by the createURI, i have to delete 'plugin' and use 'resource'. I am so happy. But i have to find out to bring it generally to work in the other eclipse, because the software i work on is only a part and the software exist as eclipse plugins.

a) So here a questions: could it be, that other plug-ins in the workspace can cause trouble? What i don't write here until now is that the editor for .query files doesn't work, only in the last eclipse where everything from EMF Query 2 works is running now. Here the exception, perhaps you know what the problem is. I will setup my working system again because it must work with the workspace that include the other plugins, when i find something i post it here.

0 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering platform uri 'F:\workspaces\mt\workspace3.6'
1735 [main] ERROR clipse.xtext.service.CompoundModule - Type org.eclipse.xtext.parser.antlr.IAntlrParser not present
java.lang.TypeNotPresentException: Type org.eclipse.xtext.parser.antlr.IAntlrParser not present
at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(Unknown Source)
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Unknown Source)
at sun.reflect.generics.tree.ClassTypeSignature.accept(Unknown Source)
at sun.reflect.generics.reflectiveObjects.WildcardTypeImpl.getUpperBounds(Unknown Source)
at org.eclipse.xtext.service.MethodBasedModule.getFirstTypeParameter(
at org.eclipse.xtext.service.MethodBasedModule.getKeyType(
at org.eclipse.xtext.service.MethodBasedModule.configure(
at org.eclipse.xtext.service.CompoundModule.configure(
at org.eclipse.xtext.service.AbstractGenericModule.configure(
at org.eclipse.xtext.service.DefaultRuntimeModule.configure(
at org.eclipse.emf.query2.syntax.AbstractQueryRuntimeModule.configure(
at org.eclipse.emf.query2.syntax.QueryStandaloneSetupGenerated.createInjector(
at org.eclipse.emf.query2.syntax.QueryStandaloneSetupGenerated.createInjectorAndDoEMFRegistration(
at de.vogella.emf.webpage.usingmodel.EMFQuery2.query(
at de.vogella.emf.webpage.usingmodel.EMFQuery2.main(
Caused by: java.lang.ClassNotFoundException: org.eclipse.xtext.parser.antlr.IAntlrParser
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
... 22 more

b) After the right editor can view now the .query files, but it say me that it have two erros, that it couldn't resolve reference to EClass 'Webpage' and to EStructuralFeature 'rating' but there are both existing in the model. The imports are as following:

import "http ://"
import "http ://webpage/1.0"

So far, thank you for your help :).

Previous Topic:(no subject)
Next Topic:Complex databindings
Goto Forum:

Current Time: Mon Feb 17 12:47:33 GMT 2020

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

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

Back to the top