|
Re: evalidator extension point [message #427710 is a reply to message #427708] |
Fri, 27 February 2009 01:55 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02699 seconds