Book a Demo

Author Topic: Add hyperlink to a model element in UML Profile?  (Read 4594 times)

G Ignacz

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Add hyperlink to a model element in UML Profile?
« on: September 25, 2015, 11:00:39 pm »
Hello,

I would like to know if it is possible to add a hyperlink to a UML stereotype layout (shape) definition.

Let's say I would like to create a Class-like element with a hyperlink
on a specific position pointing to a website or to action element.

I know it is possible to drag and drop a hyperlink element to model element, such as Class.

What I would like to achieve to have a hyperlink on the UML Profile element:
- I mean add it to the stereotype
- And have the hyperlink already added to the model element when dragged from the Toolbox.

Is that possible?

Thank you and best regards,
Gergely


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add hyperlink to a model element in UML Profil
« Reply #1 on: September 25, 2015, 11:39:44 pm »
No idea if that works. But try inserting a plain string like
Code: [Select]
<a href="$inet://hyper"><font color="#0000ff"><u>hyper</u></font></a>

q.

G Ignacz

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Add hyperlink to a model element in UML Profil
« Reply #2 on: September 26, 2015, 02:57:52 am »
Querty,

sorry, what do you mean  by adding as *Code*?

Adding this string to a label text in the shape script like this?

println("<a href=\"$inet://http://url.com\"><font color=\"#0000ff\"><u>URL Label</u></font></a>")

(I added escaping backlashes here.)

Thanks, G.

G Ignacz

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Add hyperlink to a model element in UML Profil
« Reply #3 on: September 26, 2015, 03:18:44 am »
It did not worked - at least how I understood.

Thanks for the tip anyway. G.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add hyperlink to a model element in UML Profil
« Reply #4 on: September 26, 2015, 04:01:07 am »
I was thinking of putting that string in the notes of the created element. But now I ask myself how to create a note along with a stereotype.

q.