Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Scoping: Import EObjects from external java-written Provider
Scoping: Import EObjects from external java-written Provider [message #1063796] Fri, 14 June 2013 09:31
Julian Wefers is currently offline Julian WefersFriend
Messages: 2
Registered: June 2013
Junior Member
Hi guys,

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.


greetings,

Julian
Previous Topic:Error "missing EOF at <token>"
Next Topic:Xtend 2.4.2 and static method access (regression?)
Goto Forum:
  


Current Time: Fri Dec 19 14:29:13 GMT 2014

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

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