Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMFT Validation: Inspecting constraints in ConstraintRegistry
EMFT Validation: Inspecting constraints in ConstraintRegistry [message #427458] Wed, 18 February 2009 12:48 Go to next message
Lars Heinemann is currently offline Lars HeinemannFriend
Messages: 37
Registered: July 2009
Member
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 #427473 is a reply to message #427458] Wed, 18 February 2009 17:37 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Lars Heinemann is currently offline Lars HeinemannFriend
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
Previous Topic:EMF 2.5M5 has 2.4.0 version plugins, is this normal?
Next Topic:EMF and CNF
Goto Forum:
  


Current Time: Thu Mar 28 19:57:20 GMT 2024

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

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

Back to the top