Book a Demo

Author Topic: Making Stereotype Available To Class  (Read 6209 times)

Carl

  • EA User
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
Making Stereotype Available To Class
« on: August 31, 2020, 12:27:22 am »
Hi,

I have a Profile Package with 2 Stereotypes extending MetaClass "Class".  What do I need to do to get these Stereotypes to show up in the Class Properties window?  I think I'm misunderstanding the relationship between Perspectives and Profiles.  When I select the Stereotype drop down, I see plenty of Perspectives, Profiles, and Stereotypes, but I don't see my Profile Package.

Thanks,
Carl

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Making Stereotype Available To Class
« Reply #1 on: August 31, 2020, 02:18:12 am »
You need to import the profile into the Ressources. Or even better you create your own MDG and load that. The stereotype dropdown is just something you should not use since it offers all and nothing. Stereotypes need to belong to a profile but you can't identify it from that dreaded drop down.

q.

Carl

  • EA User
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
Re: Making Stereotype Available To Class
« Reply #2 on: August 31, 2020, 04:53:12 am »
Thanks for your help.

I exported it and then imported it from Configure > Resources > UML Profiles.  The Profile Package is listed under UML Profiles.  I still can't select it from any of the Perspectives including None.

I'm attempting to put a Stereotype on a Class.  The Stereotype is an extension of MetaClass / Class.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Making Stereotype Available To Class
« Reply #3 on: August 31, 2020, 07:57:30 am »
I exported it and then imported it from Configure > Resources > UML Profiles.  The Profile Package is listed under UML Profiles.  I still can't select it from any of the Perspectives including None.

Try Perspective > Specialized > All Specialized
The Sparx Team
[email protected]

Carl

  • EA User
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
Re: Making Stereotype Available To Class
« Reply #4 on: August 31, 2020, 10:18:32 am »
Hi,

I'm still not able to see the Perspective, Profile, or Stereotype to apply to my Class.  This screenshot shows how I created the Stereotypes.  I created a Profile Package, added a Metaclass, then extended two Stereotypes.  From the Resources section, you can see that I exported this package and import it.



However, I can't find this Stereotype to apply to a Class.  I've looked through the specialized, user, and built-in profiles.  I didn't see mine anywhere.

Thanks again,
Carl
« Last Edit: August 31, 2020, 10:24:01 am by Carl »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Making Stereotype Available To Class
« Reply #5 on: August 31, 2020, 12:22:06 pm »
I exported it and then imported it from Configure > Resources > UML Profiles.  The Profile Package is listed under UML Profiles.  I still can't select it from any of the Perspectives including None.

Try Perspective > Specialized > All Specialized
Neil, I find it both amusing and annoying that "All perspectives" DOESN'T include "Specialized perspectives".   ;) ::)

To paraphrase "Boss" from the Castrol Ad (as you'll recall, I'm want to do), "Sol, All's ain't All's".  8)  8)

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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Making Stereotype Available To Class
« Reply #6 on: August 31, 2020, 03:27:24 pm »
I exported it and then imported it from Configure > Resources > UML Profiles.  The Profile Package is listed under UML Profiles.  I still can't select it from any of the Perspectives including None.

Try Perspective > Specialized > All Specialized
Neil, I find it both amusing and annoying that "All perspectives" DOESN'T include "Specialized perspectives".   ;) ::)

To paraphrase "Boss" from the Castrol Ad (as you'll recall, I'm want to do), "Sol, All's ain't All's".  8)  8)

Paolo
I'm not sure how you came to that conclusion, but on my machine all of my own profiles are listed if I select "All perpectives"

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Making Stereotype Available To Class
« Reply #7 on: August 31, 2020, 04:38:29 pm »
I exported it and then imported it from Configure > Resources > UML Profiles.  The Profile Package is listed under UML Profiles.  I still can't select it from any of the Perspectives including None.

Try Perspective > Specialized > All Specialized
Neil, I find it both amusing and annoying that "All perspectives" DOESN'T include "Specialized perspectives".   ;) ::)

To paraphrase "Boss" from the Castrol Ad (as you'll recall, I'm want to do), "Sol, All's ain't All's".  8)  8)

Paolo
I'm not sure how you came to that conclusion, but on my machine all of my own profiles are listed if I select "All perspectives "

Geert
"Your, honour, I swear that the accused didn't but today I installed 1554 and now it does!"

I was specifically talking about the New diagram dialog, but as I said, it now seems to be OK.

"The jury will ignore the last statement!"

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

Carl

  • EA User
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
Re: Making Stereotype Available To Class
« Reply #8 on: August 31, 2020, 10:17:20 pm »
This is working for me now.  They show up under All Perspectives.

It looks like my stereotypes didn't export correctly.  In the earlier screenshot you don't see an expand arrow with the UML profile.  When I re-exported this morning, the stereotypes "View" and "Component" were listed under VueJSStereotypes.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Making Stereotype Available To Class
« Reply #9 on: August 31, 2020, 10:41:40 pm »
Happens all time. Wrong export -> nothing works and EA doesn't tell you anything why. Only remedy: re-export everything after some break/sleep.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Making Stereotype Available To Class
« Reply #10 on: September 01, 2020, 09:29:25 am »
"Your, honour, I swear that the accused didn't but today I installed 1554 and now it does!"

I was specifically talking about the New diagram dialog, but as I said, it now seems to be OK.

"The jury will ignore the last statement!"
There was actually an issue with this. Unless I'm mistaken it was fixed in 1513.

In short, all perspectives was defined as a union of all the available perspectives. That meant that if a technology didn't exist in any perspective you wouldn't see it in All. The workaround was to define a perspective using your technology.