Introduce factory created EObjects https://www.eclipse.org/forums/index.php/mv/msg/440484/986888/#msg_986888
in my xtext project is the need of predefining some types and function calls. There are only known at runtime.
I followed the post 295656 "Dynamically creating EObjects in the linker [message #803468]":

1. In class MyDslLinkingService some types and functions are created as described in this extracted example:

then the function call is somehow known but there is still an error marker 'dangling reference' for the types.

So, the types are known but some other connection is still missing.

Here are my questions:
1. You can only add one object to the list (method getLinkedObjects). Does it matter, which object will be added here?
2. Am I missing something or is there any mistake in this approach?
3. What about the resource, the created file only contains an xml header - is this okay?

Greetings,
Gaspar

]]>Gaspar Din2012-11-22T09:25:42-00:00Re: Introduce factory created EObjects https://www.eclipse.org/forums/index.php/mv/msg/440484/987676/#msg_987676
First, the EObjects have to be created in the MyDslLinkingService.
Then, for every EObject, an EObjectDescription has to be created like:
EObjectDescription.create(name, obj);

And last, those EObjectDescriptions have to be returned in the MyDslScopeProvider: