Providing Scope for an Embedded Editor in e4 RCP application [message #1795785] |
Fri, 28 September 2018 10:38  |
Eclipse User |
|
|
|
Hello, I am creating an e4 application and am using the EmbeddedEditor .
I want to provide a way for importing the content of other dsl files and tried using importURI as well as importedNamespace but can't seem to get it to work.
I implemented a transitive import the way it is shown in this blogpost:
https://blogs.itemis.com/en/in-five-minutes-to-transitive-imports-within-a-dsl-with-xtext
This works as a eclipse application but not in the e4 rcp application.
Which steps would be necessary to get it to work?
My createResource() Method in my LanguageResourceProvider looks like this:
public XtextResource createResource() {
ResourceSet resourceSet = resourceSetProvider.get(null);
URI uri = URI.createURI("synthetic:/mydsl." + ext.getPrimaryFileExtension());
XtextResource result = (XtextResource)resourceSet.createResource(uri);
resourceSet.getResources().add(result);
return result;
}
|
|
|
|
Powered by
FUDForum. Page generated in 1.03844 seconds