|
Re: Connection source and target in XMI file [message #175156 is a reply to message #175132] |
Mon, 03 March 2008 14:04 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Noor,
This is more an EMF question. What you see here are fragment paths that
specify how to get from the root of the resource to the object being
referenced. If you want something that's more symbolic, you'd need to
define IDs or your object (an EAttribute with isID true) or use a
resource implementation that generates associated IDs (overrides
XMIResourceImpl.useUUIDs to return true).
Noor wrote:
> Hi All,
> I generated gmf diagram and XMI file (which is like xml file for
> diagram) and are working fine.
>
> when I draw a connection line to connect elements of diagram from
> source element to target element, in xmi file it shows element's index
> number instead of the name of elemnent. like: (components.0 ,
> components.1 ....)
>
> (conns, hcomponents and components are EReferences with containment
> true in model)
>
> <conns source="//@hcomponents.0/@components.1"
> target="//@hcomponents.0/@components.0"/>
> <conns source="//@hcomponents.0/@components.1"
> target="//@hcomponents.0/@components.2"/>
>
> I want to have names of source and target elements in xmi file instead
> of their index numbers.
>
> Any hint how can I do it.
>
> Thanks in advance.
>
>
>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03377 seconds