Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Triggering a re-link(The relationship between the builder, the index, linking, validation and scoping)
Triggering a re-link [message #1047576] Tue, 23 April 2013 07:59
Eclipse UserFriend
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?

Thanks,

Chris
Previous Topic:How to refresh a model cache when an external resource changes?
Next Topic:Cannot serialize a Boolean false value
Goto Forum:
  


Current Time: Tue Jul 22 18:23:21 EDT 2025

Powered by FUDForum. Page generated in 0.03001 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top