Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEMF validation with several OCL documents
https://www.eclipse.org/forums/index.php/mv/msg/1074302/1721742/#msg_1721742
I need to programmatically validate some EMF data with several OCL files. I am using Eclipse Mars.
I use a CompleteOCLEObjectValidator for each OCL document, they are added to a ComposedEValidator which is the main validator.
When there is only one OCL document, it is OK.
When there are several OCL documents, some or all constraints are checked several times, therefore identical diagnostics messages are printed several times.
I've done a small project which exhibit this unwanted behavior, it is attached. main is in library.ocl.CompleteOCLTest.java
Is there something that I have done wrong ?
Regards,
Dominique Marcadet
]]>Dominique Marcadet2016-01-29T16:38:43-00:00Re: EMF validation with several OCL documents
https://www.eclipse.org/forums/index.php/mv/msg/1074302/1721762/#msg_1721762
Thank you. Excellent repro. Saves so much time.
On 29/01/2016 16:38, Dominique Marcadet wrote:
> Hi,
>
> I need to programmatically validate some EMF data with several OCL files. I am using Eclipse Mars.
>
> I use a CompleteOCLEObjectValidator for each OCL document, they are added to a ComposedEValidator which is the main validator.
>
> When there is only one OCL document, it is OK.
> When there are several OCL documents, some or all constraints are checked several times, therefore identical diagnostics messages are printed several times.
>
> I've done a small project which exhibit this unwanted behavior, it is attached. main is in library.ocl.CompleteOCLTest.java
>
> Is there something that I have done wrong ?
>
> Regards,
> Dominique Marcadet
>]]>Ed Willink2016-01-29T21:44:54-00:00