Book a Demo

Author Topic: Problems with UML profiles from MDG Technology  (Read 4696 times)

brannstrom

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Problems with UML profiles from MDG Technology
« on: April 29, 2008, 06:25:19 pm »
Hi!

I'm using a MDG Technology that contains several profiles with stereotypes. When I create a new element with a stereotype from the MDG Technology it is created with the color set in the profile. But when I change the stereotype on an existing element then the color is not changed.

In the menu Settings->UML I can't see the stereotypes from the MDG Technology. I have to add the profiles from the profile packages that I used to create the Technology. Then I can see them under Settings->UML, but the stereotype doesn't have the right color. I have to manually set it, and then the stereotype is working as it should in the project.

Why isn't the stereotypes from the MDG Technology visible under Settings-UML. Am I doing something the wrong way?

/N

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Problems with UML profiles from MDG Technology
« Reply #1 on: April 29, 2008, 10:11:11 pm »
How are you loading the MDG Technology file?
No, you can't have it!

brannstrom

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Problems with UML profiles from MDG Technology
« Reply #2 on: April 29, 2008, 10:22:35 pm »
I have placed it in the MDGTechnologies folder. I'm running build 828.

/N

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Problems with UML profiles from MDG Technology
« Reply #3 on: April 30, 2008, 02:47:22 am »
That's the appropriate approach all right. I was thinking you might have used the old way, which tended to 'forget' things.

I suggest you send a message to Sparx Support, asking whether this is the correct behavior. You'll find their address as a mailto: link on the Registered Users page near the top.

David

[EDIT: PS: Please let us know what light Sparx can shed on this.]
« Last Edit: April 30, 2008, 02:48:11 am by Midnight »
No, you can't have it!

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: Problems with UML profiles from MDG Technology
« Reply #4 on: May 01, 2008, 07:53:35 am »
Quote
Why isn't the stereotypes from the MDG Technology visible under Settings-UML. Am I doing something the wrong way?

/N

As I understand, the stereotypes you create under Settings -> UML are stored separately from any profiles you import.  In other words, if you import a profile - it "hides" the stereotype and its behaviour under Settings -> UML.

I reecommend you avoid touching Settings -> UML and focus just on getting the MDG / profile to work.  Sorry I can't help you onthat, other than Settings -> UML will just confuse things.

I presume you are regenerating the MDG through the EA wizard?  If so - I think all you need to do is plonk it into the MDGTechnologies folder (as you are doing) then restart EA to reload the changes.

David.
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"

brannstrom

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Problems with UML profiles from MDG Technology
« Reply #5 on: May 05, 2008, 08:35:09 pm »
Quote
Quote
Why isn't the stereotypes from the MDG Technology visible under Settings-UML. Am I doing something the wrong way?

/N

As I understand, the stereotypes you create under Settings -> UML are stored separately from any profiles you import.  In other words, if you import a profile - it "hides" the stereotype and its behaviour under Settings -> UML.

I reecommend you avoid touching Settings -> UML and focus just on getting the MDG / profile to work.  Sorry I can't help you onthat, other than Settings -> UML will just confuse things.

I presume you are regenerating the MDG through the EA wizard?  If so - I think all you need to do is plonk it into the MDGTechnologies folder (as you are doing) then restart EA to reload the changes.

David.

The big problem is that the color is not right on "old" elements in the project with the same stereotype as in the MDG Tech. When I create new elements with the stereotype, then the color is right.

/N

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problems with UML profiles from MDG Technology
« Reply #6 on: May 06, 2008, 08:52:01 am »
From memory the colors along with the tagged values specified by are profile are not updated from the profile automatically.

There is a synchronize tags and constraints function, (http://www.sparxsystems.com.au/EAUserGuide/index.html?synchronizetagsandconstrain.htm) but I don't think this effects the colors.  (And I don't think it can be used for an MDG technology that isn't loaded into the model.)

Have a look, then contact sparx support for advice.