Closed Wilson008 closed 2 years ago
We shall use IGlobalScopeProvider to provide global scopes to define what is visible from outside the current resource!
Very good example in: http://blog.efftinge.de/2009/01/xtext-scopes-and-emf-index.html
in the scoping code of our simplified EAST-ADL project, specifically in EastAdlSimplifiedScopeProvider class, we override the method getScope in which we get and filter the scopes from the same .eatxt file. So for the further step, if we want to support cross-reference among multi-file, then getting scopes from other .eatxt files may be a necessary way. And we can see that in the last line of getScope, it invokes the getScope of its super (i.e. supertype), and due to our previous experiments, we have known that the getScope of super computes the scopes from other *.eatxt files, so what we good to do is that implementing computation of scopes in this getScope by coping the way getScope of super does!
This issue is duplicate with issue 5 and issue 5 has been addressed, and as the issue 5 has been closed, so now this issue should be closed too. For more details, please refer to #5 .
Currently, our eatxt editor could support open several eatxt file and all of which could work. Based on this, we would make the editor support cross-reference among different eatxt files.