Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Hyperlinks for Diagram Elements
Hyperlinks for Diagram Elements [message #1269812] Wed, 12 March 2014 08:08 Go to next message
Marc-Florian Wendland is currently offline Marc-Florian WendlandFriend
Messages: 81
Registered: January 2013
Member
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 08:33 Go to previous message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 168
Registered: July 2009
Location: Palaiseau, France
Senior Member
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


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:Accessing object name or attributes in comments
Next Topic:eclipse.ini memory settings for large papyrus projects
Goto Forum:
  


Current Time: Fri Nov 27 18:42:40 GMT 2020

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

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

Back to the top