Book a Demo

Author Topic: How do I add sterotypes ?  (Read 4626 times)

malmoth

  • EA User
  • **
  • Posts: 49
  • Karma: +0/-0
  • On ne réveille pas un malmoth qui dort
    • View Profile
How do I add sterotypes ?
« on: March 20, 2006, 12:25:54 pm »
I want to add two stereotypes to my sequence diagrams. In the diagram property, I can wirte <<Nominal>> or <<Alternate>> in the stereotype field and this is fine. But, I'd like to choose the stereotype in the dropdown list instead. And this list is empty, whatever what I can do.
I've tried the Settings/UML/Stereotype function, but it seems that one cannot add stereotypes to the diagrams stereotypes list with this.
Moreover, the diagram stereotype is not displayed in the project view as it is for element stereotypes.

Can someone help ?
Regards,

Malmoth

thomaskilian

  • Guest
Re: How do I add sterotypes ?
« Reply #1 on: March 20, 2006, 01:06:43 pm »
Unlikely :( There's a thread about diagram stereotypes which has been buried in this board (within the last 6 months). Maybe you can try to search for it :-/

rastoml

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How do I add sterotypes ?
« Reply #2 on: March 20, 2006, 02:40:59 pm »
Hi,

it is possible, I don't know how exactly you should do it, but you should create a profile with stereotypes you want and then import the profile to your project.
I don't know the step-by-step-how-to-it, because I am already working with some profile and I can see those stereotypes in the drop down box.

R.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How do I add sterotypes ?
« Reply #3 on: March 20, 2006, 03:06:13 pm »
Quote
I want to add two stereotypes to my sequence diagrams.

Go to "Settings | UML | Stereotypes", create a stereotype and give it a Base Class of Diagram and the stereotype should be available in the diagram properties. Diagram isn't one of the choices in the Base Class combobox, but you can still type it.

Adding two stereotypes to a diagram isn't possible at the moment unless you type in a comma-separated list.

I'm afraid diagram stereotypes don't currently get displayed in the project view.
« Last Edit: March 20, 2006, 03:08:26 pm by KP »
The Sparx Team
[email protected]

malmoth

  • EA User
  • **
  • Posts: 49
  • Karma: +0/-0
  • On ne réveille pas un malmoth qui dort
    • View Profile
Re: How do I add sterotypes ?
« Reply #4 on: March 20, 2006, 11:58:02 pm »
Quote
Adding two stereotypes to a diagram isn't possible at the moment unless you type in a comma-separated list.


Let me be clear over this. I don't want to add two stereotypes at the same time. I just want to see these two sterotypes in the diagram stereotype dropdown list.

Quote
Diagram isn't one of the choices in the Base Class combobox, but you can still type it


I thought I had tried this, but I may have dreamed it. I'll try again and let you know. Is the Base Class field case sensitive ?
Regards,

Malmoth

thomaskilian

  • Guest
Re: How do I add sterotypes ?
« Reply #5 on: March 21, 2006, 01:04:09 am »
Type "Diagram" in the Base Class. It works. I wasn't aware of that...

malmoth

  • EA User
  • **
  • Posts: 49
  • Karma: +0/-0
  • On ne réveille pas un malmoth qui dort
    • View Profile
Re: How do I add sterotypes ?
« Reply #6 on: March 21, 2006, 01:12:27 am »
Quote
Type "Diagram" in the Base Class. It works. I wasn't aware of that...


It works indeed. I had tried to select <all> in the Base Class field, but that didn't work.
Regards,

Malmoth

fmartins

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How do I add sterotypes ?
« Reply #7 on: April 20, 2006, 09:38:31 am »
i have same problem, somebody help ???
in the sequence diagram don't display the correct stereotype ...
i select <all> in the Base Class , but that didn't work.  :-/

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How do I add sterotypes ?
« Reply #8 on: April 20, 2006, 03:16:34 pm »
Hi fmartins,

Earlier in the thread it was established that:
  • Selecting <all> in the Base Class of the stereotype dialog will not work.  You must instead type in Diagram.
  • Once you have set up a stereotype with the correct base class, you will be able to select that stereotype for diagrams.
  • Only one stereotype can be applied to a diagram.
  • The diagram stereotype does not show up in the tree view.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: How do I add sterotypes ?
« Reply #9 on: April 20, 2006, 04:40:32 pm »
Quote
Hi fmartins,

Earlier in the thread it was established that:
  • Selecting <all> in the Base Class of the stereotype dialog will not work.  You must instead type in Diagram.
  • Once you have set up a stereotype with the correct base class, you will be able to select that stereotype for diagrams.
  • Only one stereotype can be applied to a diagram.
  • The diagram stereotype does not show up in the tree view.

Consistency, Consistency, Consistency! TM


He's back!    ;D

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