|
|
Re: Run xtext workflow from another plugin project [message #990538 is a reply to message #990080] |
Thu, 13 December 2012 00:11 |
Adnan AL-SOSWA Messages: 41 Registered: May 2010 |
Member |
|
|
Thanks for response ,
after fixing a lot of dependencies , I could not fix this exception
although the class org/eclipse/xtext/impl/GrammarImpl is exist the exception still .
[code] while locating org.eclipse.xtext.conversion.impl.IDValueConverter
while locating org.eclipse.xtext.conversion.impl.AbstractIDValueConverter
for field at org.eclipse.xtext.common.services.DefaultTerminalConverters.idValueConverter(Unknown Source)
while locating org.eclipse.emf.mwe2.language.Mwe2ValueConverters
while locating org.eclipse.xtext.conversion.IValueConverterService
for field at org.eclipse.xtext.parsetree.reconstr.impl.ValueSerializer.converter(Unknown Source)
while locating org.eclipse.xtext.parsetree.reconstr.impl.ValueSerializer
while locating org.eclipse.xtext.parsetree.reconstr.ITokenSerializer$IValueSerializer
for field at org.eclipse.xtext.validation.impl.AssignmentQuantityAllocator.valueSerializer(Unknown Source)
while locating org.eclipse.xtext.validation.impl.AssignmentQuantityAllocator
while locating org.eclipse.xtext.validation.IAssignmentQuantityAllocator
for field at org.eclipse.xtext.validation.impl.ConcreteSyntaxValidator.quantityProvider(Unknown Source)
while locating org.eclipse.xtext.validation.impl.ConcreteSyntaxValidator
while locating org.eclipse.xtext.validation.IConcreteSyntaxValidator
for field at org.eclipse.xtext.resource.XtextResource.validator(Unknown Source)
while locating org.eclipse.xtext.linking.lazy.LazyLinkingResource
while locating org.eclipse.xtext.resource.XtextResource
Caused by: java.lang.NoClassDefFoundError: org/eclipse/xtext/impl/GrammarImpl
at org.eclipse.xtext.impl.XtextFactoryImpl.createGrammar(XtextFactoryImpl.java:100)
at org.eclipse.xtext.impl.XtextFactoryImpl.create(XtextFactoryImpl.java:63)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.createObject(XMLHelperImpl.java:883)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.createObject(XMLHelperImpl.java:919)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFactory(XMLHandler.java:2051)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1270)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1336)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:970)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:83)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:953)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:684)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHandler.java:167)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at
[Updated on: Sun, 20 January 2013 10:35] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Run xtext workflow from another plugin project [message #1006325 is a reply to message #1006320] |
Wed, 30 January 2013 20:37 |
|
Hi,
the activator should do the initialization. (and it does it in a trivial example)
Injector injector = Mwe2Activator.getInstance().getInjector("org.eclipse.emf.mwe2.language.Mwe2") ;
Mwe2Runner instance = injector.getInstance(Mwe2Runner.class);
instance.run(URI.createURI("platform:/resource/testa/src/test.mwe2"), null);
but i still do not understand. do you try to read .xtext files or .mwe files?
and what is this dynamic thing? what do you exactly what to do from a top view.
but i just remembered https://bugs.eclipse.org/bugs/show_bug.cgi?id=318721
which might lead to problems anyway.
you may have a look at the class WorkflowLaunchUtils in org.eclipse.xtext.xtext.ui to cirumvent the problems.
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.03913 seconds