Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Jayson on May 18, 2021, 04:06:55 am

Title: Redefined Toolbox
Post by: Jayson 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
Title: Re: Redefined Toolbox
Post by: qwerty 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????
Title: Re: Redefined Toolbox
Post by: Geert Bellekens 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
Title: Re: Redefined Toolbox
Post by: Jayson 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 :-)
Title: Re: Redefined Toolbox
Post by: Geert Bellekens 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
Title: Re: Redefined Toolbox
Post by: Jayson 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"/>