Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext custom validation: different resource and eobject
Xtext custom validation: different resource and eobject [message #557000] Fri, 03 September 2010 14:38 Go to next message
Eclipse UserFriend
Originally posted by: pete.cheyne.yahoo.com

Hi,

I am wondering about the following: when I use the validation methods
and use the warning(...) methods to create markers, the markers are
create with the corresponding CompositeNode to the element that is
subject to the analysis (in the check function signature). However, I
want call such a validation method on another element (or even resource)
than the one where the warning is created as it makes my life a little
easier. How is this possible? Or asked differently: is there are
guarantee that the validation methods are worked on from the root to
bottom so that I can basically precalculate or preprocess a few results
and then just add the precalculated warnings in validation method that
correspond to the ones where they should be printed?

Peter
Re: Xtext custom validation: different resource and eobject [message #557005 is a reply to message #557000] Fri, 03 September 2010 15:08 Go to previous message
Eclipse UserFriend
Originally posted by: pete.cheyne.yahoo.com

Nevermind, I just realized that I could actually pass the proper EObject
to the warning method and that the markers would then be placed
according to the EObject.

Am 03.09.2010 16:38, schrieb Peter Cheyne:
> Hi,
>
> I am wondering about the following: when I use the validation methods
> and use the warning(...) methods to create markers, the markers are
> create with the corresponding CompositeNode to the element that is
> subject to the analysis (in the check function signature). However, I
> want call such a validation method on another element (or even resource)
> than the one where the warning is created as it makes my life a little
> easier. How is this possible? Or asked differently: is there are
> guarantee that the validation methods are worked on from the root to
> bottom so that I can basically precalculate or preprocess a few results
> and then just add the precalculated warnings in validation method that
> correspond to the ones where they should be printed?
>
> Peter
Previous Topic:ContentAssist testing with different models
Next Topic:Supporting Refinement behavior
Goto Forum:
  


Current Time: Wed Apr 24 23:47:02 GMT 2024

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

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

Back to the top