|Scoping: Import EObjects from external java-written Provider [message #1063796]
||Fri, 14 June 2013 09:31
| Julian Wefers
Registered: June 2013
after reading for days i still can't figure out how to implement scoping for my case.
We have a metamodel of our data in xcore form. The actual model, say which objects exist, is provided by a java written model provider. This provider has methods to extract EObjects out of it and it is possible to implement something like "List<EObject> getAllObjects".
So while i can import my metamodel and reference it's type for cross-references in my grammar, i have no idea how to inform xtext which objects are visible.
Should i wrap our model provider in a resourceDescription, write a manager, implement my own IGlobalScopeProvider oder something different? Do i have to wrap all my EObjects into IEObjectDescriptions first? Do i need to give each Object it's own URI and QualifiedName?
i'm really lost in this huge bunch of different classes and possibilities.
Powered by FUDForum
. Page generated in 0.03152 seconds