Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Node with multiple Connection
Node with multiple Connection [message #55307] Mon, 25 September 2006 15:49 Go to next message
Balraj Kannan is currently offline Balraj KannanFriend
Messages: 28
Registered: July 2009
Junior Member
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 16:27 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:How to limit the set of items in a property drop-down menu
Next Topic:update on copy & paste
Goto Forum:
  


Current Time: Thu Nov 21 15:57:14 GMT 2024

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

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

Back to the top