Skip to main content



      Home
Home » Modeling » EMF » Using eKey(How to use eKey)
Using eKey [message #1061077] Wed, 29 May 2013 16:01 Go to next message
Eclipse UserFriend
Hi,

My reading from the forum that when I use 1 field as "EKey", the EReference will have the format of /@a[name='foo'] instead of /@a.<index> in the serialized file (in my case XMI). However, I have no success at all (still always get /@a.<index>). Is there any example or document that I can refer to? Or is there any area that I should pay attention (like some options)?

Thanks very much.

Edmund
Re: Using eKey [message #1061128 is a reply to message #1061077] Thu, 30 May 2013 03:28 Go to previous message
Eclipse UserFriend
Edmund,

Comments below.

On 29/05/2013 10:39 PM, Edmund Leung wrote:
> Hi,
>
> My reading from the forum that when I use 1 field as "EKey", the
> EReference will have the format of /@a[name='foo'] instead of
> /@a.<index> in the serialized file (in my case XMI). However, I have
> no success at all (still always get /@a.<index>). Is there any
> example or document that I can refer to? Or is there any area that I
> should pay attention (like some options)?
Probably you've tried setting this on the cross reference to that type
of object but you need to set it on the containment reference that
contains that type of object. I.e., you'd need to set the eKeys for
containment reference "a" to be the attribute for "name".
>
> Thanks very much.
>
> Edmund
>
Previous Topic:Can trigger a method call for an attribute change in an EMF model?
Next Topic:EMF based RAP Editor
Goto Forum:
  


Current Time: Tue Jul 15 22:52:24 EDT 2025

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

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

Back to the top