Book a Demo

Author Topic: Deleting Sterotypes  (Read 5557 times)

Matt Taylor

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Deleting Sterotypes
« on: July 13, 2012, 04:16:31 am »
Apologies if this is too basic but I'm trying to delete some sterotypes that have been inadvertently created by people typing not selecting.  I can go to the Settings-->UML Types-->Stereotypes Tab-->{highlight}-->[Delete] but all that happens is that the Stereotype name, class and Notes get cleared, the list refreshes and low and behold the entry is still there.

Security is not enabled so it's not that and the Help offers no help.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Deleting Sterotypes
« Reply #1 on: July 13, 2012, 05:34:18 am »
I'd say this is strange. Are you using EAP or RDBMS?

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Deleting Sterotypes
« Reply #2 on: July 13, 2012, 09:16:13 am »
Is there one specific record that you can't delete, or is it all of them?
The Sparx Team
[email protected]

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Deleting Sterotypes
« Reply #3 on: July 13, 2012, 10:26:57 am »
I think, therefore I am.

Do these stereotypes still exist in object properties? Since they get entered into the list just by filling in the Stereotype field in a Properties dialog, perhaps the list is just being refreshed by the Stereotype lurking somewhere in an element or connector?

If you have not already done so, try searching for the Stereotypes and deleting or changing all of them in the objects. If you HAVE already done so, then I'm not sure where the problem lies either.
Best Regards, Roy

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Deleting Sterotypes
« Reply #4 on: July 16, 2012, 03:29:29 pm »
In Dutch we have a saying "dweilen met de kraan open" which means something like "mopping with the tab running".
That is exactly what's happening when trying to clean up the rogue stereotypes created by users (mis) typing in that field.
I wish there was a way to avoid the "on the fly" stereotype creation in the first place.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Deleting Sterotypes
« Reply #5 on: July 16, 2012, 07:45:59 pm »
That's the point! There should be some privilege to create a new stereotype. Unlike a single element (which creation can also be security controlled) which has only local effects it must be possible to lock stereotype creation as these have global influence.

q.

Matt Taylor

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Deleting Sterotypes
« Reply #6 on: August 01, 2012, 04:15:52 am »
Thanks for all the responses, apologies for my tardiness - been away.

I've tried all suggestions for searching etc and with one of them there were 5 rogue objects.  I've set them to the correct stereotype so none left, tried to delete and same thing happens.

If I create a sterotype through the UML Types screen I can immediately delete it but generally not.

Really frustrating as I now have sterotypes of <existing>, Bountary, Bou and holycow!

I'm running on an Oracle Db by the way.

Matt Taylor

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Deleting Sterotypes
« Reply #7 on: August 01, 2012, 04:44:00 am »
Interestingly (as in the Chinese curse) - if I rename the offending stereotypes to "do not use", do not use1" etc, it merely creates a new one in the list and doesn't overwrite the one I'm trying to remove.  For something so easy to create, they sure are sticky  >:(

tomshanley

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Deleting Sterotypes
« Reply #8 on: August 07, 2012, 01:01:46 pm »
I had the same problem.  in the end, I created a script to remove the rogue stereotypes

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Deleting Sterotypes
« Reply #9 on: August 07, 2012, 01:38:11 pm »
Can you send a bug report in please? What would be very useful is if you could provide a screen shot of the results of a 'SELECT * FROM t_stereotypes' custom SQL search indicating which stereotypes you can't delete. Thanks.
The Sparx Team
[email protected]