Validator [message #424163] |
Fri, 17 October 2008 18:45 |
Eclipse User |
|
|
|
Originally posted by: nuclearpsyche.gmail.com
Hello,
I have custom validators that check if the provided value is between the
allowed lower and upper bounds. However the upper and lower bounds are
dynamic and depend on the model. So I need to read the model in the
validation function.
How can I access the model (the root object) from my validator?
Thanks,
tamer
|
|
|
|
Re: Validator [message #424166 is a reply to message #424164] |
Fri, 17 October 2008 19:28 |
Eclipse User |
|
|
|
Originally posted by: nuclearpsyche.gmail.com
Ed,
Thanks, that's a very handy function!
t
Ed Merks wrote:
> Tamer,
>
> EcoreUtil.getRootContainer?
>
>
> Tamer wrote:
>> Hello,
>>
>> I have custom validators that check if the provided value is between
>> the allowed lower and upper bounds. However the upper and lower bounds
>> are dynamic and depend on the model. So I need to read the model in
>> the validation function.
>> How can I access the model (the root object) from my validator?
>> Thanks,
>>
>> tamer
|
|
|
Powered by
FUDForum. Page generated in 0.02739 seconds