|
|
|
|
Re: Parse DSL instances into Resource without Eclipse application [message #1730684 is a reply to message #1730680] |
Wed, 27 April 2016 15:58 |
Sina Madani Messages: 160 Registered: November 2015 Location: York, UK |
Senior Member |
|
|
OK thank you so much!
I'm encountering a slight issue with the Injector. I presume this is the org.eclipse.emf.mwe.internal.core.ast.util.Injector and not the com.google.Injector. But for some reason I get an error "The method getInstance(Class<XtextResourceSet>) is undefined for the type Injector". I also get a warning "Discouraged access: The type 'Injector' is not API (restriction on required library 'C:\Program Files\Eclipse\plugins\org.eclipse.emf.mwe.core_1.3.13.v201512160556.jar')".
Injector injector = (Injector) new IDLStandaloneSetup().createInjectorAndDoEMFRegistration();
XtextResourceSet resourceSet = injector.getInstance(XtextResourceSet.class);
resourceSet.addLoadOption(XtextResource.OPTION_RESOLVE_ALL, true);
EDIT: Never mind, I looked at the method and it's using Google Guice so it is the Google Injector I need.
[Updated on: Wed, 27 April 2016 16:03] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04408 seconds