How to load an EMFText model in a standalone Java application [message #1070750] |
Thu, 18 July 2013 11:33  |
Eclipse User |
|
|
|
Hi there
I like to load my EMFText model in a standalone java application. I have been looking for a possible answer but nothing yet. I found this piece of code but for Xtext
new org.eclipse.emf.mwe.utils.StandaloneSetup().setPlatformUri("../");
Injector injector = new MyDslStandaloneSetup().createInjectorAndDoEMFRegistration();
XtextResourceSet resourceSet = injector.getInstance(XtextResourceSet.class);
resourceSet.addLoadOption(XtextResource.OPTION_RESOLVE_ALL, Boolean.TRUE);
Resource resource = resourceSet.getResource(
URI.createURI("platform:/resource/org.xtext.example.mydsl/src/example.mydsl"), true);
Model model = (Model) resource.getContents().get(0);
I need to do exactly the same but using EMFText instead of Xtext. Is it possible?
I would really appreciate any help or answer.
Best regards.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05284 seconds