Book a Demo

Author Topic: Creating a stereotyped class  (Read 4262 times)

Dieter Moroff

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Creating a stereotyped class
« on: September 21, 2010, 11:51:19 pm »
I am using EA 8 and the java automation interface. I created a UML profile with different stereotypes containing tagged values.

If I try to create a uml element with a stereotype through the automation interface it doesn't contain the tagged values of the profiles stereotype. Moving the element to a diagram, it does not have the appearance defined in the profile.

How can I create a stereotyped element through the automation interface behave like an element created in the EA user interface?

Thanks
Dieter

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Creating a stereotyped class
« Reply #1 on: September 22, 2010, 03:22:59 pm »
Dieter,

That probably means that your new class doesn't have the stereotype defined in the profile, but just a stereotype with the same name.
I'm not sure at all, but I think it has something to do with the t_xref table.

Geert

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Creating a stereotyped class
« Reply #2 on: September 22, 2010, 05:14:53 pm »
Maybe the stereotype is allright, but you need to synchronize it programmatically:

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1238534229/1#1

Dieter Moroff

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Creating a stereotyped class
« Reply #3 on: September 22, 2010, 06:22:52 pm »
Thanks for the replies, the tip synchronizing the profile works for the tagged values. The default appearance is still the default and not the one defined in the profile.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Creating a stereotyped class
« Reply #4 on: September 22, 2010, 07:32:09 pm »
Quote
The default appearance is still the default and not the one defined in the profile

Maybe some method for redrawing or reloading diagrams might help. Geert probably knows.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Creating a stereotyped class
« Reply #5 on: September 22, 2010, 07:45:51 pm »
Before trying that in code, close the diagram and reopen it. (or to be really sure, close EA and reopen).
If it still doesn't have "profile" shape then no amount of reload diagrams will help.

Geert

beginner

  • Guest
Re: Creating a stereotyped class
« Reply #6 on: September 22, 2010, 08:14:53 pm »
Have you checked the Setting/UML/Stereotypes for a stereotype with the same name?

b.