Author Topic: Defaulting diagram stereotype in MDG  (Read 2229 times)

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Defaulting diagram stereotype in MDG
« on: December 10, 2008, 08:45:59 am »
Sparx gurus,

Can I default the diagram.stereotype in my MDG?

Reason being, I want to be able to test for the type of custom diagram in my shapescript.  I have the following available:

diagram.name = the name the user gives the diagram (no good as user can call it anything)

diagram.type = the base underlying EA type.  No good if I have several diagrams based on the same type (cannot distinguish between them or even vanilla EA diagrams)

diagram.stereotype = always blank.  My idea is to default it for each new diagram then I can test in shapescript

Is defaulting the diagram stereotype possible?  If so - do I put something on the UML PRofile diagram that defines my diagrams, or on the stereotype or base metaclass for the custom diagram type?

Thanks,
David.
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Defaulting diagram stereotype in MDG
« Reply #1 on: December 10, 2008, 09:59:40 am »
That's a definite oversight - pop in a bug report and hopefully we can add it for EA 7.5
The Sparx Team
[email protected]

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: Defaulting diagram stereotype in MDG
« Reply #2 on: December 10, 2008, 10:18:28 am »
Thanks for your quick reply.

I've logged a registered user's bug as requested.

Thanks,
David.
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"