Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Limit validation to current resource or EObject(validation scope )
Limit validation to current resource or EObject [message #900715] Wed, 08 August 2012 05:33 Go to next message
Yigal Spinner is currently offline Yigal Spinner
Messages: 102
Registered: July 2009
Senior Member
I have a very large model that is set as proxies. Each object and direct containment is stored in a separate file.
When I run validation on a top EObject, it loads the entire tree to validate and that takes over 30 minutes.
Since I can assume that other objects, that are stored in separate files, are already validated when saved, how can I limit my validation either to current resource or current EObjects in current resource?

Thanks
Yigal
Re: Limit validation to current resource or EObject [message #900830 is a reply to message #900715] Wed, 08 August 2012 12:12 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25923
Registered: July 2009
Senior Member
Yigal,

If you extend Diagnostician, you could specialize doValidateContents to
do nothing and thereby validate only the one object.

On 08/08/2012 11:34 AM, Yigal Spinner wrote:
> I have a very large model that is set as proxies. Each object and
> direct containment is stored in a separate file. When I run validation
> on a top EObject, it loads the entire tree to validate and that takes
> over 30 minutes.
> Since I can assume that other objects, that are stored in separate
> files, are already validated when saved, how can I limit my validation
> either to current resource or current EObjects in current resource?
>
> Thanks
> Yigal
Previous Topic:How to call an EOperation in atl program?
Next Topic:Chunking Item Provider
Goto Forum:
  


Current Time: Mon Jul 28 02:16:13 EDT 2014

Powered by FUDForum. Page generated in 0.04117 seconds