Book a Demo

Author Topic: Redefined Toolbox  (Read 4146 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Redefined Toolbox
« on: May 18, 2021, 04:06:55 am »
Hey all

I've looked on these forums and found a few topics (incl the one below) on how to redefine the stereotype.
The MDG manual says that pasting the following into the Notes of the toolbox diagram will do the trick.

RedefinedToolbox=UML::Class;Alias=Class;Notes=Structural elements for Class diagrams;

However, when I save the Toolbox Package as a profile, none of the above text turns up in the XML.
The instructions seems super simple (relative to other Sparx instructions), but they just don't work for me.

Sup?

Cheers

Jays :-)


https://sparxsystems.com/forums/smf/index.php?topic=18469.0

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Redefined Toolbox
« Reply #1 on: May 18, 2021, 04:14:05 am »
The most silly implementation possible. What could possibly go wrong when using plain text for formal descriptions?

q.

P.S. Since I'm playing around with the new QL definition I wil have a look into that one too.
P.P.S Like usual with Sparx docs: failing the first hurdle.
Quote
Then, in the 'Notes' field type a RedefinedToolbox clause.
Well, WHICH notes, please?

P.P.P.S Unbelievable! If you paste the text "RedefinedToolbox=UML::Class;Alias=Class;Notes=Structural elements for Class diagrams;" in the notes field of an existing diagram then it shows the Class toolbox. How sick is that????
« Last Edit: May 18, 2021, 04:25:06 am by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Redefined Toolbox
« Reply #2 on: May 18, 2021, 06:55:44 am »
There is also a notes field in the "generate UML profile" dialog box.
IIRC you could use that one as well.

Geert

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Redefined Toolbox
« Reply #3 on: May 18, 2021, 06:21:12 pm »
Aha! Thanks Geert!
If I paste the above into the Notes box that appears when I choose to publish the toolbox package as a profile, it DOES at least show up in the XML file (which it doesn't do if you enter it into the Notes field of the diagram).

Next up is to check if this actually has any effect. However that will have to wait till tomorrow as its almost 8:30 (PM) here and my brain is fried.

Thanks to both you and q for yet another piece of info that I would have otherwise gone insane trying to figure out on my own!

Jays :-)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Redefined Toolbox
« Reply #4 on: May 18, 2021, 06:36:27 pm »
Don't forget to set your MDG to "active" or it won't do anything at all.

Geert

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Redefined Toolbox
« Reply #5 on: May 19, 2021, 12:34:42 am »
Okie dokie, so done and done!

For any other masochists out there, the following is the XML that is generated.

Btw, what on earth do Toolbox ALIAS and NOTES do?
I know what they do for ToolboxPages, but I can't find ANY evidence of the TOOLBOX Alias and Notes doing ANYTHING.

<Documentation version="1.0" notes="RedefinedToolbox=UML::Class;Alias=Class;Notes=Structural elements for Class diagrams;" name="Profile1" id="9A3F2EAE-4"/>