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 09:33 Go to next message
Yigal Spinner is currently offline Yigal SpinnerFriend
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 16:12 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26287
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: Sun Dec 21 15:51:06 GMT 2014

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

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