Book a Demo

Author Topic: More than one toolbox  (Read 5719 times)

Tangent

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
More than one toolbox
« on: July 27, 2011, 08:45:51 pm »
Hi All,

Another MDG question, this time about toolboxes.  I want to set up a diagram type with multiple toolboxes.  Is this possible?

I have seen that the 'toolbox' attribute in the Diagram meta-class only seems to allow one toolbox to be selected.

What I am trying to do is create a diagram type which has the EA supplied Class toolbox in addition to my own custom toolbox.

I am relatively new to extending EA so apologies in advance for asking to many questions without supplying too many answers :-O

Tom.
« Last Edit: July 27, 2011, 08:46:54 pm by tangent »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: More than one toolbox
« Reply #1 on: July 27, 2011, 08:50:44 pm »
I don't think EA allows more then one toolbox, but why would you event want that?

Geert

Tangent

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: More than one toolbox
« Reply #2 on: July 27, 2011, 09:02:02 pm »
There are two reasons for wanting this...

1.  So I don't have to re-specify all of the elements and relationships in my own profile - I can use the OOB ones.
2.  So I don't have to keep switching between toolboxes, or have them permanently selected for all diagram types (using More tools... > Set Toolbox Visibility).

Tangent

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: More than one toolbox
« Reply #3 on: July 27, 2011, 09:03:03 pm »
I just want to make it easy enough for a muppet to use :-)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: More than one toolbox
« Reply #4 on: July 27, 2011, 09:06:05 pm »
You're just being lazy then ;D

Geert

Tangent

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: More than one toolbox
« Reply #5 on: July 27, 2011, 09:10:10 pm »
Unashamedly "Yes"!

Signed Gozo.
« Last Edit: July 27, 2011, 09:10:46 pm by tangent »

Tangent

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: More than one toolbox
« Reply #6 on: July 27, 2011, 09:13:11 pm »
On a more serious note, there seem to be a number of cool things you can do extending EA, and a number of ways you can come unstuck, but the documentation is a bit scarce.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: More than one toolbox
« Reply #7 on: July 27, 2011, 09:19:49 pm »
It is. If you're looking for more info on extending EA with add-ins you might want to take a look at my blog: http://geertbellekens.wordpress.com/tag/add-in/

Geert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: More than one toolbox
« Reply #8 on: July 28, 2011, 09:21:31 am »
You can only have one toolbox profile per custom diagram type, but each toolbox profile can have multiple toolbox pages. Have a look at the BPMN 1.1 toolbox for an illustration: "BPMN 1.1 Core", "BPMN 1.1 Relationships" and "BPMN 1.1 Types" are each defined in the BPMN toolbox profile as a stereotype that extends "ToolboxPage".

So in your toolbox profile, you would have your own ToolboxPage stereotype as before, plus a couple of stereotypes named "UML Class" and "UML Class Relationships" that also extend ToolboxPage. These would have attributes named "UML::Package", "UML::Class", "UML::Interface" etc, you can figure out the rest from the help file: Elements Used in Toolboxes and Connectors Used in Toolboxes. Ask Support if you get stuck...

HTH
The Sparx Team
[email protected]

Tangent

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: More than one toolbox
« Reply #9 on: July 28, 2011, 10:37:06 pm »
Thanks for helping there KP - That worked a treat!
« Last Edit: July 28, 2011, 10:37:33 pm by tangent »