Node with multiple Connection [message #55307] |
Mon, 25 September 2006 11:49  |
Eclipse User |
|
|
|
Hi,
I have an element which can have connections to many elements. I have
label associated with the link. To achieve i have done the following:
<nodea>
<nodeb>
<nodec>
<relationship source="nodea" target_nodeb="nodeb" label="optional">
<relationship source="nodea" target_nodec="nodec" label="mandatory">
I have elements "nodea", "nodeb", "nodec" and "relationship". Node
relationship is used to hold the link label, source and target links. I
have attributes target_nodeb and target_nodec defined which are used to
hold the link. When this is implemented I see that the label is shown only
for the first link that is created in the mapping file. The label is not
shown for the second element added. To test if I was going wrong in
mapping or something I did the following:
From the mapping file I deleted the first link mapping for nodea and
nodeb, then generated the code. This showed the label for nodea and nodec
mapping.
The model file is generated correctly but the label is not displayed on
the editor.
I am going wrong somewhere? Please suggest.
Thanks & Regards
Balraj
|
|
|
Re: Node with multiple Connection [message #55358 is a reply to message #55307] |
Mon, 25 September 2006 12:27  |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
I guess that something went wrong with your mapping or gmfgen model; it
would be helpful to see them.
Balraj Kannan wrote:
>
> Hi,
>
> I have an element which can have connections to many elements. I have
> label associated with the link. To achieve i have done the following:
>
> <nodea>
> <nodeb>
> <nodec>
> <relationship source="nodea" target_nodeb="nodeb" label="optional">
> <relationship source="nodea" target_nodec="nodec" label="mandatory">
>
>
> I have elements "nodea", "nodeb", "nodec" and "relationship". Node
> relationship is used to hold the link label, source and target links. I
> have attributes target_nodeb and target_nodec defined which are used to
> hold the link. When this is implemented I see that the label is shown
> only for the first link that is created in the mapping file. The label
> is not shown for the second element added. To test if I was going wrong
> in mapping or something I did the following:
>
> From the mapping file I deleted the first link mapping for nodea and
> nodeb, then generated the code. This showed the label for nodea and
> nodec mapping.
>
> The model file is generated correctly but the label is not displayed on
> the editor.
> I am going wrong somewhere? Please suggest.
>
> Thanks & Regards
> Balraj
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03069 seconds