Book a Demo

Author Topic: Diagram default for a package in a toolbox  (Read 10324 times)

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Diagram default for a package in a toolbox
« on: February 10, 2012, 09:43:48 am »
Is there a way of changing the diagram default for a package in a custom toolbox.  So when you drag it onto the page the diagram type automatically selected is one of your custom types?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Diagram default for a package in a toolbox
« Reply #1 on: February 10, 2012, 09:48:08 am »
I don't really get it. What is a "diagram default for a package"? Is it options for a package, the appearance, ???

q.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Diagram default for a package in a toolbox
« Reply #2 on: February 10, 2012, 10:05:50 am »

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Diagram default for a package in a toolbox
« Reply #3 on: February 10, 2012, 12:13:22 pm »
I don't think so.  If I create a MDG Technology with custom diagram types and in one of the toolboxes I have  "UML::Package :int = Service Catalogue".  Obviously when I drag that onto a diagram I get the standard package creation dialogue box and if you check automatically create diagram, the selected diagram is the uml class diagram.

I want a package but I want the selected diagram to be from my technology.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Diagram default for a package in a toolbox
« Reply #4 on: February 10, 2012, 01:57:35 pm »
Are you sure Aaron's link isn't what you need?

Half way down the topic is the sentence:

"You can also use the _defaultDiagramType attribute for packages, extending the Package metaclass."

You would call in the diagram type you have created?

Best Regards, Roy

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Diagram default for a package in a toolbox
« Reply #5 on: February 12, 2012, 08:32:37 am »
oh right.  Sorry missed that.  I'll give it a go.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Diagram default for a package in a toolbox
« Reply #6 on: February 13, 2012, 08:08:44 am »
I'm not sure that's actually what I want, but I'll address the issue by having a good example model.

Another thing I can't find is how toolboxes on a toolbox page are ordered.  Is it possible to order them in a particular way?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Diagram default for a package in a toolbox
« Reply #7 on: February 13, 2012, 10:49:17 am »
Quote
Another thing I can't find is how toolboxes on a toolbox page are ordered.  Is it possible to order them in a particular way?
If you save your profile from the package context menu, the toolbox will take its order from the Project Browser. If you save your profile from the diagram context menu, the toolbox will take its order from the Z-order of the diagram objects.
The Sparx Team
[email protected]

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Diagram default for a package in a toolbox
« Reply #8 on: February 13, 2012, 11:02:08 am »
Excellent, thanks.  I'd never spotted the handy z-order context menu item before,

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Diagram default for a package in a toolbox
« Reply #9 on: February 13, 2012, 11:29:31 am »
Seems to be reverse z-order :-)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Diagram default for a package in a toolbox
« Reply #10 on: February 13, 2012, 11:44:40 am »
Quote
Seems to be reverse z-order :-)
There seems to be a lot of this reverse stuff around.  A lot of things appear to happen in the reverse order to that expected.

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