|Triggering a re-link [message #1047576]
||Tue, 23 April 2013 11:59
| Chris Ainsley
Registered: March 2010
Sorry to raise so many questions, but I thought its easier to ask individual (different but related) questions in individual threads.|
This question relates to how to trigger a re-link/re-validation of a particular EResource/EObject in response to an external file or folder being created/deleted/modified (on the filesystem within the workspace).
So, I have 3 questions:
1) What is the best way to discover all the eResources in the workspace? (I'll need this to calculate which file system change impacts which eResource)
2) What is the best way to monitor file system elements being modified within an Eclipse workspace, and the best place to add this hook in an xtext project? (I'm aware that files inserted outside Eclipse will not be picked up until pressing F5)
3) How can I trigger a re-link on individual resources, will this also re-parse and re-validate the resource?
Powered by FUDForum
. Page generated in 0.05775 seconds