Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFForms] EKeys on EReference validation constrain only fired on initial AddCommand
[EMFForms] EKeys on EReference validation constrain only fired on initial AddCommand [message #1453883] Mon, 27 October 2014 12:58 Go to next message
Eclipse UserFriend
Hi there,

how can I use EKeys on EReferences properly with EMFForms?

When I setup an EKey on an EReference to restrict duplicate EAttribute values I'm seeing the validation rule firstly fired when I'm reloading the ECPSWTView or if I use internal actions of RefernenceMultiControl (Delete, Up, Down).

I see in MultiContol an IListChangeListener which unfortunately does not fire the validation. So i see no hook other than changing databindings - where i have no clue how to setup it for this case.

Is there a different solution?

Thanks in advance!
Phil
Re: [EMFForms] EKeys on EReference validation constrain only fired on initial AddCommand [message #1455379 is a reply to message #1453883] Wed, 29 October 2014 05:55 Go to previous message
Eclipse UserFriend
Hi,

does it work if you programatically change the model instance?
The UI will just create Commands and run them on the model. There should
be no need for any other trigger, because the validation service listens
for changes. Could you provide a test case to reproduce this behavior?

best regards

Jonas

Am 27.10.2014 17:58, schrieb Phil Wim:
> Hi there,
>
> how can I use EKeys on EReferences properly with EMFForms?
> When I setup an EKey on an EReference to restrict duplicate EAttribute
> values I'm seeing the validation rule firstly fired when I'm reloading
> the ECPSWTView or if I use internal actions of RefernenceMultiControl
> (Delete, Up, Down).
> I see in MultiContol an IListChangeListener which unfortunately does not
> fire the validation. So i see no hook other than changing databindings -
> where i have no clue how to setup it for this case.
> Is there a different solution?
> Thanks in advance!
> Phil
Previous Topic:[EMFStore] Performance of large change packages
Next Topic:[EMFForms] Setting default focus on control of ViewModel
Goto Forum:
  


Current Time: Tue Jul 15 00:46:38 EDT 2025

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

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

Back to the top