Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emf-dev] EMF Validation + Eclipse 3.8

Please use the newsgroup/forum for asking questions like this.

On 11/10/2012 11:36 AM, rania mzid wrote:
Hi all,
I tried to create my own EMF validation constraints in order to perform some validation on my model.
 
I used the IBatchValidator like this :
IBatchValidator validator = (IBatchValidator) ModelValidationService.getInstance().newValidator(EvaluationMode.
BATCH);
validator.setIncludeLiveConstraints(
true);
for (IConstraintFilter filter : filters) {
validator.addConstraintFilter(filter);
}
IStatus status = validator.validate(targetObject, monitor);
 
It works very well with Eclipse Indigo but I tried this code with Eclipse 3.8 it doesn't work. In fact, the problem that the validate method of my constraint is not invocated!
Did you have any idea about this problem?
 
Thank you advance,
 
Best Regards,
Rania


_______________________________________________
emf-dev mailing list
emf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emf-dev


Back to the top