Skip to main content



      Home
Home » Modeling » Papyrus » Hyperlinks for Diagram Elements
Hyperlinks for Diagram Elements [message #1269812] Wed, 12 March 2014 04:08 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Accessing object name or attributes in comments
Next Topic:eclipse.ini memory settings for large papyrus projects
Goto Forum:
  


Current Time: Wed Jul 23 13:47:04 EDT 2025

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

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

Back to the top