Book a Demo

Author Topic: Adding a hyperlink element to my custom toolbox  (Read 4095 times)

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Adding a hyperlink element to my custom toolbox
« on: January 18, 2013, 11:08:16 pm »
Hi guys,

I want to add a hyperlink element to my toolbox, but I cannot find a suitable base metaclass.

If the above problem is solvable, then I would like to decide that this link is to another diagram, have the diagram selection dialog open automatically and add a default text to the notes field. Possible?

Cheers
Knut

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Adding a hyperlink element to my custom toolbo
« Reply #1 on: January 19, 2013, 12:21:33 am »
I'm currently not so deep in this matter. I would solve these (also your other thread) via a MDG add-in. Most likely there is no "native" solution.

You might wait a few days for others possibly having a solution.

q.

Wivel

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Adding a hyperlink element to my custom toolbo
« Reply #2 on: January 19, 2013, 02:44:17 am »
Hi Knut

I am not quite sure what it is you are trying to achieve here and why. As far as I know, you cannot have hyperlinks in a Toolbox, so you need to rethink what it is you are trying to do.

Perhaps you can define a UML pattern and use elements from that instead?

Henrik

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Adding a hyperlink element to my custom toolbo
« Reply #3 on: January 21, 2013, 09:17:35 am »
Quote
I want to add a hyperlink element to my toolbox, but I cannot find a suitable base metaclass.
"UML::Hyperlink"

Quote
If the above problem is solvable, then I would like to decide that this link is to another diagram, have the diagram selection dialog open automatically and add a default text to the notes field. Possible?
Sounds like a job for an add-in. You will need to implement EA_OnPostNewElement where you will check if the element being created is a hyperlink or not, and then perform your processing. Except I don't think you can get the diagram selection dialog to open automatically.
The Sparx Team
[email protected]