Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Live validation as default
Live validation as default [message #88357] Fri, 06 July 2007 07:50 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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 Go to previous message
Eclipse UserFriend
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?
>>
>>
Previous Topic:[EMF Compare] Questions wrt EMF-DIFF file
Next Topic:Import XMI
Goto Forum:
  


Current Time: Fri Apr 19 13:13:41 GMT 2024

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

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

Back to the top