|
|
|
Re: [Edge] Problem with Edge creation [message #1403289 is a reply to message #1403095] |
Mon, 21 July 2014 08:45   |
Eclipse User |
|
|
|
Hi Neeraj,
Le 21/07/2014 13:13, Neeraj Bhusare a écrit :
> Hi Maxime,
>
> Thanks for the help.
>
> Based on your suggestion, I refactored the child node (Attribute) to a
> Bordered node. The Edge (type) has the source mapping set to "Bordered
> Attribute.
> However, the edges are not computed/displayed. Do you mind taking a look
> at the .odesign file -
> https://github.com/nbhusare/Sirius-test-project/blob/master/entity.design/description/entity.odesign
First remark: all the fields whose name is diplayed in a bold font and
ended by a '*' are required. So you must put an id for all the mapping
and tools you defined in your odesign.
Then I looked into your odesign, and I think that your edge problem will
be solved by the add of an id, because now your two edge mappings have
the same empty id (if your try to validate your odesign, several errors
should tell you this).
>
>
> Secondly, after I made the above change, the attributes are not laid out
> properly in the generated diagram. Please see -
> https://github.com/nbhusare/Sirius-test-project/blob/master/entity.modeling/021.png
The attributes are now created as bordered nodes and displayed on the
border of the Class lists. Sirius places them to avoid overlap, and
starts from the upper left corner. You might try to write and execute a
command to change their layout (the layout constraint of the GMF
Notation Nodes corresponding to each bordered Attribute node) and call
it after/during your creation command.
>
>
> Sorry for the delayed reply.
Regards,
Maxime
|
|
|
|
Powered by
FUDForum. Page generated in 0.05634 seconds