Author Topic: RedefinedToolbox  (Read 12687 times)

philchudley

  • EA User
  • **
  • Posts: 740
  • Karma: +20/-0
  • UML/EA Principal Consultant / Trainer
    • View Profile
RedefinedToolbox
« on: April 18, 2012, 12:29:05 am »
Hi All,

In the EA user guide (I am using version 9.3 build 931), it states:

[highlight]To replace one of Enterprise Architect's default Toolboxes with one of your own (for example, if you have your
own version of the UML::Class Toolbox that you want to be opened every time a Class diagram is opened -
as long as your technology is active) then include a RedefinedToolbox clause in the Notes field for the
diagram properties of your ToolboxProfile diagram.
For example, the profile diagram's Notes field could resemble the following:
Re d e f i n e d To o l b o x =UML : : Cl a s s ; Al i a s =Cl a s s ; No t e s =St r u c t u r a l e l eme n t s f o r
Cl a s s d i a g r ams ;[/highlight]

I have created an MDG technology with a toolbox profile. On the Notes field for the Toolbox Profile diagram I have the following:

[highlight]RedefinedToolbox=UML::UseCase;Alias=Cambridge Assessment;Notes=Elements for Cambridge Assessment Requirements Modelling;[/highlight]

However, when a Use Case diagram is opened, the default toolbox appears and not my Defined Toolbox as in the RedefinedToolbox clause.

Anyone else experience the same? Have I done anything wrong? My MDG is certainly active.

Cheers

Phil
« Last Edit: April 18, 2012, 12:29:30 am by philchudley »
follow me on Twitter

@SparxEAGuru

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: RedefinedToolbox
« Reply #1 on: April 18, 2012, 12:42:48 am »
I temporarily experimented with that but to no avail. I'd be interested in a solution as well.

q.

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: RedefinedToolbox
« Reply #2 on: April 18, 2012, 01:10:38 am »
Hi
I have a MDG Technology that works as advertised!
My toolbox diagram has the following in the notes field
Code: [Select]
RedefinedToolbox=UML::Class;Alias=ASLClass;Notes=Structural elements for class diagrams;
Which looks the same as yours

How have you defined the attributes for your stereotype?
You should have a <metaclass> called ToolboxPage and a stereotype class that extends this



« Last Edit: April 18, 2012, 01:21:46 am by SomersetGraham »
Using V12

philchudley

  • EA User
  • **
  • Posts: 740
  • Karma: +20/-0
  • UML/EA Principal Consultant / Trainer
    • View Profile
Re: RedefinedToolbox
« Reply #3 on: April 18, 2012, 01:55:19 am »
Yes I have three such Stereotypes, and the toolbox appears as expected when it is selected using More Tools...

I just cannot get it to override the default UML Use Case toolbox when a UML use case diagram is opened.

Cheers
follow me on Twitter

@SparxEAGuru

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: RedefinedToolbox
« Reply #4 on: April 18, 2012, 02:02:56 am »
Hi
I have just done a simple experiment which successfully overrides the default use case toolbox.
These are the steps followed -
Create new empty EA project
Add a class view called Profiles (don't think the name is important)
Add a package to the view with a <profile> stereotype
Add a class diagram
Open class diagram (Profile toolbox should be shown)
Add a class and call it ToolboxPage (name IS important), give it a stereotype of <metaclass>
Add a 'Stereotype' (from the Profile toolbox)
Create a 'extends' relationship between the two
Add an attribute to the 'Stereotype' - This is specified as
<Your Profile Name>::Class(UML::Class) OR
UML::Class(UML::Class)
Set the diagram properties
Save the diagram as a profile
Generate the MDG file

Hope this helps

Using V12

philchudley

  • EA User
  • **
  • Posts: 740
  • Karma: +20/-0
  • UML/EA Principal Consultant / Trainer
    • View Profile
Re: RedefinedToolbox
« Reply #5 on: April 18, 2012, 02:08:22 am »
Thanks Graham!

I have now got it to work. Stupid mistake I made which I spotted following your steps.

I had originally saved the profile package containing the ToolBox profile as a UML profile and not the diagram!

I saved the diagram as a profile and now all works as expected.

Thanks again for pointing me in right direction.
follow me on Twitter

@SparxEAGuru

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: RedefinedToolbox
« Reply #6 on: April 18, 2012, 02:11:22 am »
 ;D
Using V12

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: RedefinedToolbox
« Reply #7 on: April 18, 2012, 03:27:54 am »
Good to know it's working.

To avoid your mistake you should do what I did in the meantime. I have a quite simple add-in which creates a MDG from profiles (which can be done via simple string operations). Per convention profile name and file name are congruent by some simple rules. When putting together the MDG I open and inspect the name attributes of each profile. If it's wrong I simply croak and that's it. Helped me to save many hours since I implemented it. Before that I often had wrongly saved profiles making me sit in front of the keyboard and gnawing my finger nails.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8598
  • Karma: +256/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: RedefinedToolbox
« Reply #8 on: April 18, 2012, 11:44:05 am »
Quote
Good to know it's working.

To avoid your mistake you should do what I did in the meantime. I have a quite simple add-in which creates a MDG from profiles (which can be done via simple string operations).
[size=18]...[/size]
q.
Have you shared it on the community site?

Sounds like an excellent item!

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Doug Blake

  • EA User
  • **
  • Posts: 102
  • Karma: +0/-0
    • View Profile
Re: RedefinedToolbox
« Reply #9 on: April 18, 2012, 06:10:52 pm »
Quote
Have you shared it on the community site?

Paolo
Is this community site separate from Sparx? If so where is it please?
Thanks in advance

Doug
« Last Edit: April 18, 2012, 06:31:08 pm by douglasgblake »
DGB Using 12.0.1214 / eaDocX 3.6.2.1 / MSSQL / TFS / Windows 7 / IE11

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: RedefinedToolbox
« Reply #10 on: April 18, 2012, 06:31:45 pm »
Using V12

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13287
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RedefinedToolbox
« Reply #11 on: March 12, 2016, 12:50:31 am »
Help, I'm lost. I'm doing everything exactly as mentioned, both saving from my diagram as from my package, but I can't seem to get EA to override an existing toolbox. :-[ >:( :'(

Does anyone have an example MDG model that has this working?

Please :-*

Thanks

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13287
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RedefinedToolbox
« Reply #12 on: March 12, 2016, 01:36:57 am »
Really weird this is.
If I remove my toolbox profile from the MDG and put the RedefinedToolbox note in the Profile package EA overrides the default toolbox with the stereotypes defined in my profile.

But from the toolbox profile I can't seem to get it working.

I'm certain the toolbox profile itself is OK as I can see my toolbox just fine if I select it.

What a I doing wrong?

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8064
  • Karma: +118/-20
    • View Profile
Re: RedefinedToolbox
« Reply #13 on: March 15, 2016, 08:49:08 am »
Overriding a toolbox can only be done by the single user selected 'Active' technology.

Open the MDG Technologies dialog, select your technology and click 'Set Active'.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: RedefinedToolbox
« Reply #14 on: March 15, 2016, 09:45:17 am »
Does anyone have an example MDG model that has this working?

Have a look at the ICONIX technology. That overrides EA's use case toolbox, among others.
The Sparx Team
[email protected]