Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:59
Chris Ainsley is currently offline Chris Ainsley
Messages: 74
Registered: March 2010
Location: UK
Member

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: Wed Sep 17 23:46:36 GMT 2014

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

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