Skip to main content



      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 05:31
Eclipse UserFriend
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: Tue Jul 15 00:21:47 EDT 2025

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

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

Back to the top