Limiting the scope to elements in the same resource [message #1142329] |
Thu, 17 October 2013 10:52  |
Eclipse User |
|
|
|
Hello everyone,
in one of my (numerous) Xtext projects I have a fairly straight-forward entity DSL which is compiled and used to populate a database. Usually when creating cross-references, Xtext offers all matching objects from all resources within the project as completion proposals, and normally this is fine. However, in my case, having cross-references between files does not make sense for the use case and may even break the compile process.
So, the question is: what is the simplest way of narrowing down the scope of reference targets to only those objects which are declared in the same file as the reference source object? I tried to use a custom ScopeProvider, but it turned out to be not that easy with all those IEObjectDescription objects involved...
Thanks,
Alan
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11708 seconds