Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » evalidator extension point
evalidator extension point [message #427708] Thu, 26 February 2009 23:23 Go to next message
Knut Wannheden is currently offline Knut WannhedenFriend
Messages: 298
Registered: July 2009
Senior Member
Hi,

As documented near the end of the EValidator tutorial
( http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.validation.doc/tutorials/validationAdapterTutorial.html)
there is no extension point for EValidators as there is for resource
factories and EPackages. What is the reasoning behind this? Would it make
sense to define an extension point for this purpose?

Use case: I would like to be able to define multiple EValidators for one
model. Some of these EValidators will be provided by other plug-ins.
Currently I could achieve this by implementing my own extension point, but
I believe this could be a quite common requirement.

Thanks,

--knut
Re: evalidator extension point [message #427710 is a reply to message #427708] Fri, 27 February 2009 01:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Knut,

Comments below.

Knut Wannheden wrote:
> Hi,
>
> As documented near the end of the EValidator tutorial
> ( http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.validation.doc/tutorials/validationAdapterTutorial.html)
> there is no extension point for EValidators as there is for resource
> factories and EPackages. What is the reasoning behind this?
The generated package determines which validator is used.
> Would it make sense to define an extension point for this purpose?
This would imply either overriding the default or multiple validators...
>
> Use case: I would like to be able to define multiple EValidators for
> one model.
I suppose, but the intent isn't for someone externally to globally
change what's valid. That ought to be intrinsic to the model.
> Some of these EValidators will be provided by other plug-ins.
> Currently I could achieve this by implementing my own extension point,
> but I believe this could be a quite common requirement.
It seems to be that any additional validation ought to be restricted to
the contexts where they make sense rather than have contributions that
determine validity for all applications in the system. And that's the
purpose of the extended validation framework...
>
> Thanks,
>
> --knut
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:XMLResource EObject replacement
Next Topic:EMF and Any....
Goto Forum:
  


Current Time: Sat Apr 20 03:35:47 GMT 2024

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

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

Back to the top