Skip to main content



      Home
Home » Eclipse Projects » Sirius » Attach Other Figures/EditParts to an Edge
Attach Other Figures/EditParts to an Edge [message #1787648] Wed, 30 May 2018 08:23 Go to next message
Eclipse UserFriend
Hello,
I have already asked it on GMF forum but no one replied, so I thought some people here may konw.

Currently, labels are attached to the connections/edges, which allows the user to see a link when moving the label around (see below). Now, assume that I have a figure or editpart which I want to attach it to a connection. Is there any way to do that by either attaching the editpart to the connection other than setting a figure as the label of the connection ?
index.php/fa/32879/0/

Thanks.
Regards,
Parsa

[Updated on: Wed, 30 May 2018 08:25] by Moderator

Re: Attach Other Figures/EditParts to an Edge [message #1788024 is a reply to message #1787648] Wed, 30 May 2018 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi Parsa,

Do you want to make the attachement displayed only while moving the attached figure ?

If your modeler is based on Sirius, as indicated in https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#edges :
Quote:

Note that it is possible to have edges whose source or target is another edge, but not both.


So you might define an additional EdgeMapping to represent this attachment.

Regards
Re: Attach Other Figures/EditParts to an Edge [message #1789893 is a reply to message #1788024] Thu, 31 May 2018 08:55 Go to previous message
Eclipse UserFriend
Thanks a lot Maxime,

I like that there is always a solution for everything. I keep it as a potential solution cuz I didn't really want the edge to be visible, but if I set its size to zero then it is kind of OK. I assume it is either setting an edge or setting the label figure to make it happen.

Thanks for your help,
Regards,
Parsa
Previous Topic:Node level context menu
Next Topic:Anchors in Diagrams
Goto Forum:
  


Current Time: Mon Jul 07 21:09:15 EDT 2025

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

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

Back to the top