Book a Demo

Author Topic: Renaming custom stereotypes  (Read 3124 times)

michael.venema

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Renaming custom stereotypes
« on: November 08, 2006, 12:43:05 am »
Hi all,

some hours ago I created a custom stereotype based on 'dependency' that I named, let's say, 'booh'. Because I liked 'booh' I had created some dozens of instances of it all over my current model when bigboss came in and had the idea that 'blaa' would be a much better name for 'booh'. I had to agree.

So I selected 'settings -> UML -> Stereotypes ...' and renamed 'booh' to 'blah' - somehow expecting that all instances of 'booh' should now display 'blah', what they didn't. Currently it seems to me as if I had to select every single instance of 'booh' and re-assign the stereotype 'blah' - as mentioned before, there are several dozens of them. I have the hope that there might be a better way. Has anyone an idea?

Thanx, MV

thomaskilian

  • Guest
Re: Renaming custom stereotypes
« Reply #1 on: November 08, 2006, 01:29:51 am »
You might be able to do this with a SQL. Try searching this board for SQL and SEARCH and probably ACCESS (as EAP files are Access databases).

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Renaming custom stereotypes
« Reply #2 on: November 08, 2006, 01:50:41 am »
Quote
You might be able to do this with a SQL. Try searching this board for SQL and SEARCH and probably ACCESS (as EAP files are Access databases).
So long as it is the primary stereotype, this is straight forward.  Check the stereotype columns in the respective tables.

If it is an auxiliary stereotpye then it's (significantly) more complicated...

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

michael.venema

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Renaming custom stereotypes
« Reply #3 on: November 08, 2006, 07:26:15 am »
Thanxalot, yes, that will do it.

I opened a database connection to my .eap from VisualStudio using the Microsoft.Jet.OLEDB.4.0 provider, and found the table t_connector. Something like "update t_connector set Stereotype = 'blah' where stereotype = 'booh'" should do exactly what I was looking for.

In fact, meanwhile I had reassigned 'blah' to all instances of 'booh' manually ... but I'm sure your hints will be helpfull in future. Bigboss is fond of custom stereotypes and has his own ideas about their namings.

So long, MV

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Renaming custom stereotypes
« Reply #4 on: November 08, 2006, 09:54:19 am »
Now for the next level, Michael.

From the EA main menu choose View | Report and Search View. You can also use the ctrl-alt-R hot key.

You will need to ensure that the Search View option is selected in the Mode radio button at the top left of the view.

Play around with this view, including the advanced button and the various selections in the Search drop-down. You can get at the various tables this way, and can even enter your own SQL queries. If your custom queries would be of use later you can store them as custom searches.

HTH, David
No, you can't have it!