Scope Provider: Context [message #763875] |
Sat, 10 December 2011 14:50  |
Eclipse User |
|
|
|
Hi,
I am currently implementing my own scope provider. To create my scope, I need to know the "context" around it. Lets say my DSL looks something like that:
namespace A {
// invoke scope provider here for some cross reference, e.g. for auto-completion
}
The scope provider gets the context (the Xtext resouce) and the EReference as input. What I need additionally is the name of the outer namespace, in this case "A" in order to provide my scope. As far as I know, I cannot get this information out of the two parameters (please correct me if I am wrong).
What do I have to do, to get the "A" when invoking the scope-provider withing the namespace?
Regards,
Thomas
|
|
|
|
Re: Scope Provider: Context [message #763911 is a reply to message #763885] |
Sat, 10 December 2011 16:54  |
Eclipse User |
|
|
|
Hello,
I was somehow focused on the IGlobalScopeProvider... Everything is fine with the "normal" IScopeProvider. Gives me exactly what I want.
Thanks a lot!
[Updated on: Sat, 10 December 2011 16:54] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03056 seconds