Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Validation-Error "An object may not circularly contain itself" validating an gmf-diagram
Validation-Error "An object may not circularly contain itself" validating an gmf-diagram [message #556745] Thu, 02 September 2010 13:59 Go to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
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 Smile

Can you tell me what's the problem and how I can solve?

Thanks in advance

Best regards
Markus
Re: Validation-Error "An object may not circularly contain itself" validating an gmf-diagr [message #556754 is a reply to message #556745] Thu, 02 September 2010 14:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

have a look at this thread: http://www.eclipse.org/forums/index.php?t=msg&goto=54779 2

Regards
Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Validation-Error "An object may not circularly contain itself" validating an gmf-diagr [message #556807 is a reply to message #556754] Thu, 02 September 2010 16:21 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

And https://bugs.eclipse.org/bugs/show_bug.cgi?id=322639

Regards

Ed Willink

On 02/09/2010 15:15, Christian Dietrich wrote:
> Hi,
>
> have a look at this thread:
> http://www.eclipse.org/forums/index.php?t=msg&goto=54779 2
>
> Regards
> Christian
Previous Topic:how to define a Dummy Block in Grammar?
Next Topic:-- Comments and accept until new line
Goto Forum:
  


Current Time: Fri Apr 26 08:49:00 GMT 2024

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

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

Back to the top