|
|
Re: is it possible to add link for EObject in XtextBuilderParticipant class [message #1712787 is a reply to message #1712770] |
Wed, 28 October 2015 09:21 |
kimi raikonnan Messages: 145 Registered: June 2015 |
Senior Member |
|
|
Hi Stefan,
I just want to link the EOBject after having complete view on files in the project, if i created the link in scoping phase, i would still dont have the complete view.
i just want to link certain EObjects in a step after passing through all my files and create links.
Example:
If we have 3 files
file1 : contains declaration ABC end declaration;
file2 : contains alias ABC;
file3 : contains alias ABC;
I want to choose which alias i will create a link with, and to be able to do that i should finished scoping phase for all those files then start to link the declaration ABC with one of the two aliases based on my conditions
Thanks
[Updated on: Wed, 28 October 2015 09:22] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: is it possible to add link for EObject in XtextBuilderParticipant class [message #1712958 is a reply to message #1712955] |
Thu, 29 October 2015 14:57 |
|
Hi Kimi,
Xtext does not load your whole workspace into memory. That would be a huge performance problem. Xtext only loads the current resource you are editing and the resources that you link to. If you want to ask questions about "the world", you do so via the Xtext index.
From what I understand, you need some information about the aliases in the index. Then you can use that information to make your decisions in the scope provider.
If that is not accurate, please explain your use case in more detail.
Cheers,
Stefan
[Updated on: Thu, 29 October 2015 14:58] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06169 seconds