Book a Demo

Author Topic: Unwanted stereotypes  (Read 5284 times)

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Unwanted stereotypes
« on: July 16, 2007, 06:11:58 am »
I don't know since when, but I have the following unwanted class stereotypes in my model:

  • enumeration
  • procedure
  • table
  • view
  • XSDall
  • XSDchoice
  • XSDsequence


Where do they come from?
How can I deactivate them?


(see also http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1179314524 )
« Last Edit: July 16, 2007, 06:12:16 am by ocroquette »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Unwanted stereotypes
« Reply #1 on: July 16, 2007, 07:08:47 pm »
These are all stereotypes that are used by EA.

You can remove them as mentioned in the other thread.  If you don't want them to come up, don't use the XSD profile, data modelling profile or enumerations.

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Unwanted stereotypes
« Reply #2 on: July 16, 2007, 10:44:57 pm »
Quote
You can remove them as mentioned in the other thread.  If you don't want them to come up, don't use the XSD profile, data modelling profile or enumerations.


I have been deactivating all I could, but these are still there.
I have:
* created a new empty project
* deleted all the stereotypes in Settings/UML
* disabled everything in MDG/Technologies
* checked that I don't have any profile in the ressources of my project

and I still have this handful of stereotypes!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Unwanted stereotypes
« Reply #3 on: July 17, 2007, 02:30:54 am »
AFAIK...

When you create a new project EA will load a 'default' set of reference data. What you need to do is build a base model without the stereotypes you don't want - stereotypes are one form of reference data - and instantiate your new models from that.

You should - remembering to create a backup copy first - copy your version of the base model to EABase.EAP (I believe) in your installation directory.

Remember that there is a chance this will conflict slightly with EA's behavior when you create a new project from the UI, depending on how much you cut out of the base project file.

David
No, you can't have it!

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Unwanted stereotypes
« Reply #4 on: July 17, 2007, 04:20:51 am »
Quote
What you need to do is build a base model without the stereotypes you don't want - stereotypes are one form of reference data - and instantiate your new models from that.


How should I build the base model other than what I did already (see above)!?

I started already by a fresh project where I deactivated all what I could.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Unwanted stereotypes
« Reply #5 on: July 17, 2007, 05:23:16 am »
Make a backup copy of EABase.

Then open EABase and disable what you don't want. Save the project. Next time you create a new project you should (with any luck) see your changes.

This is the only way to have new projects reflect certain settings. Since EA makes a slightly customized copy of EABase when you create a project, many settings are simply copied along with the rest of the file. Since the Reference Data sets are stored with each project, you would get all such settings that were in EABase when you create a new project.

Please let us know if it works.

David
No, you can't have it!

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Unwanted stereotypes
« Reply #6 on: July 17, 2007, 05:45:07 am »
Quote
Then open EABase and disable what you don't want.


The point is, whatever the project, even EABase, I see absolutely no way to deactivate the stereotypes mentioned above! Do you?

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Unwanted stereotypes
« Reply #7 on: July 17, 2007, 06:04:15 am »
Quote
Since the Reference Data sets are stored with each project, you would get all such settings that were in EABase when you create a new project.


Another interesting thing: if I "Export reference data", and I search thru the resulting XML file, I can find MY stereotypes allright (so far so good), but there is no trace of XSD*, enumeration & co. But they *are* proposed in the list of stereotypes in EA for a class!

They must be somehow special!?

thomaskilian

  • Guest
Re: Unwanted stereotypes
« Reply #8 on: July 17, 2007, 06:25:23 am »
I removed all class stereotyped but still they are there - plus those being used already somewhere in the model. Seems like EAP has some kind of MRU list for stereotypes. Someone from Sparx needs to comment.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Unwanted stereotypes
« Reply #9 on: July 17, 2007, 08:52:46 am »
Quote
These are all stereotypes that are used by EA.

You can remove them as mentioned in the other thread.  If you don't want them to come up, don't use the XSD profile, data modelling profile or enumerations.


Perhaps these are 'internal' to EA and treated differently than stereotypes in the reference data.

If so, I suggest following the directions Simon refers to, applying them to EABase. If this does not produce the required change try disabling the profile as Simon suggests - once again applying this change to EABAse. If you still don't get good results we're probably out of luck.

Please let us know what happens either way.

David
No, you can't have it!

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Unwanted stereotypes
« Reply #10 on: July 18, 2007, 12:54:38 am »
Quote
Perhaps these are 'internal' to EA and treated differently than stereotypes in the reference data.


The support confirmed me that they are special and can not be disabled.
I have tested with EA 6.5, which does not show this behavior.

Therefore, I have reported to the support that this is clearly a regression as far as we are concerned! I hope we will find a solution.


«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Unwanted stereotypes
« Reply #11 on: July 18, 2007, 03:00:23 am »
Thanks for taking point on this. Please update if you get a progress report or anticipated repair date from Sparx.
No, you can't have it!