Xtext custom validation: different resource and eobject [message #557000] |
Fri, 03 September 2010 14:38 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03373 seconds