Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Providing Scope for an Embedded Editor in e4 RCP application
Providing Scope for an Embedded Editor in e4 RCP application [message #1795785] Fri, 28 September 2018 10:38 Go to next message
Eclipse UserFriend
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;
}
Re: Providing Scope for an Embedded Editor in e4 RCP application [message #1795787 is a reply to message #1795785] Fri, 28 September 2018 10:45 Go to previous message
Eclipse UserFriend
Duplicate question. Sorry.
https://www.eclipse.org/forums/index.php/m/1795194/#msg_1795194
Previous Topic:xtext-eclipse project
Next Topic:Transitive imports using EmbeddedEditor (standalone java application)
Goto Forum:
  


Current Time: Tue Jun 24 22:19:34 EDT 2025

Powered by FUDForum. Page generated in 1.03844 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top