Book a Demo

Author Topic: Hiding unnecessary stereotypes in a profile  (Read 4109 times)

deefer

  • EA User
  • **
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Hiding unnecessary stereotypes in a profile
« on: June 11, 2010, 06:46:57 pm »
Hi
I'd like to create a profile where there is a hierachy of stereotypes, like this

metaclass class
^
|(extends)
|
helper
^
|(generalization)
|
stereotype1 - stereotype 2 and so on

I want that only the stereotype1 stereotype2 and so on appear when I import the profile, the helper stereotype  should be hidden.

Do you have suggestions?
Many thanx
Davide
« Last Edit: June 11, 2010, 06:49:18 pm by davideferrari »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Hiding unnecessary stereotypes in a profile
« Reply #1 on: June 11, 2010, 10:03:41 pm »
Hi Davide,

You've already tested that configuration and it works OK?

If so, then it turns out that the profile emitted merely depends upon the content of the diagram NOT the model.  So, if you remove the helper stereotype from the diagram it should still all work, but not be emitted.

If it doesn't then you can add an implicit «extends» between the bottom level and the metaclass.

HTH,
Paolo
« Last Edit: June 11, 2010, 10:06:27 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

deefer

  • EA User
  • **
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Re: Hiding unnecessary stereotypes in a profile
« Reply #2 on: June 11, 2010, 10:18:57 pm »
Thanx Paolo

I export the whole package as UML profile, and then I import it into the model.

If I delete the helper stereotype from the diagram and then I export the diagram as UML profile, it doesn't work (I don't see stereotype 1, 2 and so on)...

I'm trying to work out the problem by creating a toolbox for the profile and export everything into an MDG technology...
« Last Edit: June 11, 2010, 10:34:25 pm by davideferrari »

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Hiding unnecessary stereotypes in a profile
« Reply #3 on: June 11, 2010, 10:34:31 pm »
Did you make the helper class abstract?

deefer

  • EA User
  • **
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Re: Hiding unnecessary stereotypes in a profile
« Reply #4 on: June 11, 2010, 11:50:39 pm »
Frank, thanx a lot!!!
That's what I was looking for...

Anyway, I've learned how to create toolboxes and custom diagrams... not bad  :)

Ciao
Davide