Hyperlinks for Diagram Elements [message #1269812] |
Wed, 12 March 2014 04:08  |
Eclipse User |
|
|
|
Hi all,
I was wondering how to add hyperlinks programmatically to
GraphicalEditParts? Can someone point me to the source code location as a
starting point. I spent some time on searching for the right place,
unfortunately with little success (well, actually none at all).
Thanks in advance and best regards,
Marc-Florian
|
|
|
Re: Hyperlinks for Diagram Elements [message #1269832 is a reply to message #1269812] |
Wed, 12 March 2014 04:33  |
Eclipse User |
|
|
|
Hi Marc Florian,
When you drop a diagram from the model explorer onto an element in the diagram, this creates an hyperlink to the diagram, and also adds it as a default navigation link for the element. That means that when you double click on the element, the linked diagram will open.
For this, a specific drag and drop strategy was created in Papyrus. The code that manages this drop is located in the plugin org.eclipse.papyrus.infra.gmfdiag.hyperlink. It relies on some code present in the plugin org.eclipse.papyrus.infra.hyperlink (framework for the hyperlinks).
The entry point is the class org.eclipse.papyrus.infra.gmfdiag.hyperlink.dnd.HyperlinkDropStrategy.
HTH
Rémi
|
|
|
Powered by
FUDForum. Page generated in 0.02579 seconds