Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Incremental Validation Builder
Incremental Validation Builder [message #412456] Thu, 23 August 2007 10:48 Go to next message
Eclipse UserFriend
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
Re: Incremental Validation Builder [message #412464 is a reply to message #412456] Thu, 23 August 2007 12:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Andy,

This sounds like a cool approach and it can all be done as a background
thread to keep the IDE itself snappy.


Andrew Steady wrote:
> 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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Incremental Validation Builder [message #642211 is a reply to message #412464] Tue, 30 November 2010 12:12 Go to previous message
Jean-Francois Brazeau is currently offline Jean-Francois BrazeauFriend
Messages: 4
Registered: November 2010
Junior Member
A few months ago, I tried to find an incremental validation builder like the one that was mentioned in the previous message, but I didn't find it.

I finally decided to develop it from scratch. Now that it is done, I come back to this forum to give the tool's URL so that it may help somebody :
http://marketplace.eclipse.org/content/emf-validation-builde r
https://sourceforge.net/projects/emfvalidation

I hope it will.

Regards,

JFB
Previous Topic:[CDO] EAnnotation
Next Topic:Serializing multiple attributes under one item.
Goto Forum:
  


Current Time: Fri Apr 26 07:36:25 GMT 2024

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

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

Back to the top