Incremental Validation Builder [message #412456] |
Thu, 23 August 2007 10:48 |
Eclipse User |
|
|
|
Originally posted by: andrew_steady.hotmail.com
Hi,
We are planning to implement an incremental validation builder based on
the following approach:
1. Maintain a cache (used for other purposes also) containing the full EMF
graph specified by all XML files in the project. Keep this cache up to
date with workspace change listeners.
2. Register a builder which validates (using custom configurable
validation f/w) the objects in the cache based on the premise that by the
time the builder has been invoked the cache will have been updated. This
builder should be called after every save if auto-build is on.
3. If there are validation errors, add markers to the resources. Our
viewers/editors then get notified of the errors and handle accordingly.
This gives us the benefit that if the validation of an object requires
checking against other objects whose resources were not modified (common
use-case for us), those (many) resources do not need to be (re)loaded by
an editor who is not primarily concerned with those objects.
Any problems anyone can see with this approach or better suggestions would
be gratefully recieved!
Cheers,
Andy
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03331 seconds