Validation-Error "An object may not circularly contain itself" validating an gmf-diagram [message #556745] |
Thu, 02 September 2010 13:59 |
|
HI to all,
I want to merge our modeling framework, which is based on xtext, gmf and emf, to helios.
If I call the xtextbuilder with an diagram, I get an error-marker with the text written in the title.
So I debugged and noticed, that the method EObjectValidator#validate(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context) is called twice, because
the class CompositeEValidator holds the following three delegates in getContents()
1. (org.eclipse.xtext.validation.impl.ConcreteSyntaxEValidator) org.eclipse.xtext.validation.impl.ConcreteSyntaxEValidator
2. (org.eclipse.emf.ecore.util.EcoreValidator) org.eclipse.emf.ecore.util.EcoreValidator
3. (org.eclipse.xtext.validation.CompositeEValidator$1) org.eclipse.xtext.validation.CompositeEValidator
Both CompositeEValidator (3) and ECoreValidator (2) call the method that does this eval things
Can you tell me what's the problem and how I can solve?
Thanks in advance
Best regards
Markus
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02899 seconds