Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 16:58 Go to next message
Phil Wim is currently offline Phil WimFriend
Messages: 89
Registered: October 2013
Member
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 09:55 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
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: Thu Apr 25 07:17:33 GMT 2024

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

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

Back to the top