|
Re: EMFT Validation: Inspecting constraints in ConstraintRegistry [message #427473 is a reply to message #427458] |
Wed, 18 February 2009 17:37 |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
Hi, Lars,
Yes, there's a bit of a chicken-and-egg problem with the statically
registered constraints, but even more so with the dynamically-provided
ones. Ordinarily, the first validation operation will cause all of the
plugin.xml-provided constraints to be loaded. Maybe we should consider
letting the registry do this initialization when it is first accessed
.... if you raise a bug, I can look into it. The Constraints preference
page has to do the same as your app.
Of course, this won't solve the problem of discovering
dynamically-provided constraints. These won't be known to the system
until some object actually needs to be validated for which a provider
says "Yes, I have constraints for that!"
Cheers,
Christian
Lars Heinemann wrote:
> Hi all,
>
> ConstraintRegistry.getInstance().getAllDescriptors() returns empty
> collection. If I call
> ModelValidationService.getInstance().loadXmlConstraintDeclar ations()
> before it works correctly. However the JAvadoc of this method says that
> it is not intended to be called by clients.
>
> How can i inspect the constraints in the registry correctly?
>
> Cheer,
> Lars
|
|
|
Re: EMFT Validation: Inspecting constraints in ConstraintRegistry [message #427607 is a reply to message #427473] |
Tue, 24 February 2009 09:40 |
Lars Heinemann Messages: 37 Registered: July 2009 |
Member |
|
|
Hi Christian,
I created Bugzilla #265933:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265933
Cheers,
Lars
Christian W. Damus schrieb:
> Hi, Lars,
>
> Yes, there's a bit of a chicken-and-egg problem with the statically
> registered constraints, but even more so with the dynamically-provided
> ones. Ordinarily, the first validation operation will cause all of the
> plugin.xml-provided constraints to be loaded. Maybe we should consider
> letting the registry do this initialization when it is first accessed
> ... if you raise a bug, I can look into it. The Constraints preference
> page has to do the same as your app.
>
> Of course, this won't solve the problem of discovering
> dynamically-provided constraints. These won't be known to the system
> until some object actually needs to be validated for which a provider
> says "Yes, I have constraints for that!"
>
> Cheers,
>
> Christian
>
>
> Lars Heinemann wrote:
>> Hi all,
>>
>> ConstraintRegistry.getInstance().getAllDescriptors() returns empty
>> collection. If I call
>> ModelValidationService.getInstance().loadXmlConstraintDeclar ations()
>> before it works correctly. However the JAvadoc of this method says
>> that it is not intended to be called by clients.
>>
>> How can i inspect the constraints in the registry correctly?
>>
>> Cheer,
>> Lars
Hi
|
|
|
Powered by
FUDForum. Page generated in 0.02202 seconds