|
|
|
Re: createInjectorAndDoEMFRegistration Vs Guice.createInjector [message #1400748 is a reply to message #1400738] |
Mon, 14 July 2014 17:01 |
|
Here is what xxxdslStandalonesetup does:
public Injector createInjectorAndDoEMFRegistration() {
org.eclipse.xtext.common.TerminalsStandaloneSetup.doSetup();
Injector injector = createInjector();
register(injector);
return injector;
}
public Injector createInjector() {
return Guice.createInjector(new org.xtext.example.mydsl.MyDslRuntimeModule());
}
there is no difference
are you sure you did not touch xxxdslStandalonesetup???
and what is the difference in the model????
and where do you call the code.
can you share a grammar + a unit test reproducing the problem?
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
Re: createInjectorAndDoEMFRegistration Vs Guice.createInjector [message #1401009 is a reply to message #1400787] |
Tue, 15 July 2014 02:25 |
Elhamlaoui Mahmoud Messages: 268 Registered: March 2010 |
Senior Member |
|
|
Thinks Christian, i'm glad I did not do something stupid. So i think that i will just keep using the createInjectorAndDoEMFRegistration(). In this case is there a way to solve the first issue related resource serialization
[Worker-3] ERROR org.eclipse.xtext.buil der.impl.XtextBuilder - Passed org.eclipse.xtext.builder.clustering.CurrentDescriptions is not based on a resource set
java.lang.IllegalStateException: Passed org.eclipse.xtext.builder.clustering.CurrentDescriptions is not based on a resource set
May i ask another question plz. Sometimes i got this error even if in my grammar the gathersC has 0..* multiplicity
org.eclipse.xtext.validation.IConcreteSyntaxValidator$InvalidConcreteSyntaxException: These errors need to be fixed before the model can be serialized.
Packages: Feature Packages.name must be set.
Packages: Feature Packages.gathersC holds 0 non-transient value(s), but at least 1 are required.
[Updated on: Tue, 15 July 2014 02:31] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04054 seconds