Live validation as default [message #88357] |
Fri, 06 July 2007 07:50 |
Eclipse User |
|
|
|
Originally posted by: niclas.ericson.ecore.se
In the Library example of the validation plugin how can i set live
validation to be active as default?
|
|
|
Re: Live validation as default [message #88403 is a reply to message #88357] |
Fri, 06 July 2007 11:38 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Niclas,
The validation framework is graduated to EMF so you should ask about it
in the EMF newsgroup, which I've added to the "to" list so that
Christian is likely to see your question more quickly.
Niclas wrote:
> In the Library example of the validation plugin how can i set live
> validation to be active as default?
>
>
|
|
|
Re: Live validation as default [message #88419 is a reply to message #88403] |
Fri, 06 July 2007 13:36 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Niclas,
I think I don't understand your question. Do you mean simply that the
org.eclipse.emf.validation.examples.general plug-in should enable live
validation by default when you open an EXTLibrary editor? I don't know the
Eclipse editor API well enough to suggest how you might intercept the
opening of an editor to perform additional actions.
The usual EMF way, since you are presumably interested in editing your own
models rather than EXTLibrary, is to customize the generated editor code.
Simply have it do whatever the "Enable Live Validation" action does when
the editor is initialized.
Note, however, that this example of live validation is not practical for
most applications, as it validates changes one Notification at a time.
Live validation is much more useful is some kind of "transaction" context,
defining a scope encompassing multiple discrete changes, such as is
provided by the EMF Transaction API. See the
org.eclipse.emf.workspace.examples.library.editor variant of the EXTLibrary
editor for an example of that.
HTH,
Christian
Ed Merks wrote:
> Niclas,
>
> The validation framework is graduated to EMF so you should ask about it
> in the EMF newsgroup, which I've added to the "to" list so that
> Christian is likely to see your question more quickly.
>
>
> Niclas wrote:
>> In the Library example of the validation plugin how can i set live
>> validation to be active as default?
>>
>>
|
|
|
Re: Live validation as default [message #608658 is a reply to message #88357] |
Fri, 06 July 2007 11:38 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
Niclas,
The validation framework is graduated to EMF so you should ask about it
in the EMF newsgroup, which I've added to the "to" list so that
Christian is likely to see your question more quickly.
Niclas wrote:
> In the Library example of the validation plugin how can i set live
> validation to be active as default?
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Live validation as default [message #608659 is a reply to message #88403] |
Fri, 06 July 2007 13:36 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Niclas,
I think I don't understand your question. Do you mean simply that the
org.eclipse.emf.validation.examples.general plug-in should enable live
validation by default when you open an EXTLibrary editor? I don't know the
Eclipse editor API well enough to suggest how you might intercept the
opening of an editor to perform additional actions.
The usual EMF way, since you are presumably interested in editing your own
models rather than EXTLibrary, is to customize the generated editor code.
Simply have it do whatever the "Enable Live Validation" action does when
the editor is initialized.
Note, however, that this example of live validation is not practical for
most applications, as it validates changes one Notification at a time.
Live validation is much more useful is some kind of "transaction" context,
defining a scope encompassing multiple discrete changes, such as is
provided by the EMF Transaction API. See the
org.eclipse.emf.workspace.examples.library.editor variant of the EXTLibrary
editor for an example of that.
HTH,
Christian
Ed Merks wrote:
> Niclas,
>
> The validation framework is graduated to EMF so you should ask about it
> in the EMF newsgroup, which I've added to the "to" list so that
> Christian is likely to see your question more quickly.
>
>
> Niclas wrote:
>> In the Library example of the validation plugin how can i set live
>> validation to be active as default?
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02256 seconds