[EMFForms] EKeys on EReference validation constrain only fired on initial AddCommand [message #1453883] |
Mon, 27 October 2014 12:58  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04510 seconds