[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: TrackResources and Batch vs Live Validator

Hi, John,

The intention of the "live" validation was always to enable a "transactional" editing system, by which I mean simply some kind of automatic roll-back of changes performed during some interval.  It is not intended that problems caught by live validation should be persisted in problem markers or by any other means.  After all, once the offending changes have been rolled back, there's no problem about which to persist such information.

I wouldn't go so far as to say that tracking resources in the live validator is "silly" but it does seem to indicate an unintended usage of the API  :-)  I suppose there might be considerations such as efficiency of UI refresh, etc. that could be accommodated by tracking resources ...  What are you trying to accomplish with this mechanism?  Perhaps there's an even better way.

You can, of course, always write your own validator if you need to, but the intent is that you should never need to.  That's why there isn't any place to "register" them  ;-)

HTH,

Christian


On Mon, 2009-09-14 at 16:01 +0000, John J. Franey wrote:
In EMF validation framework 1.3.0, BatchValidator observes the 
IBatchValidator.OPTION_TRACK_RESOURCES option that would generate 'marker 
statuses for the resources covered by the validation operation'.  These 
are necessary to 'update problem markers'.  Neat.

This option is not available on LiveValidator.  Bummer.

Is it silly for me to expect LiveValidator to track resources?  Is this a 
reasonable enhancement request?

Do I need to write and register my own LiveValidator?

Regards,
Thanks,
John