Book a Demo

Author Topic: Synch tagged values  (Read 5095 times)

ch

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Synch tagged values
« on: June 27, 2008, 08:11:20 pm »
Hey,
I created an UML-profile and imported it into my project. If I create an element via drag and drop (from toolbox or resources-view) it's okay. But if I create an element (e.g. class) and choose the stereotype in class-dialog, the class has no tagged values (although stereotype has some tagged values). After "synch tagged values and constraints" there are the tags.
Is this a bug or must I do some settings?

Thanks in advance!

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: Synch tagged values
« Reply #1 on: June 30, 2008, 12:36:32 pm »
This is normal EA behaviour.  In my opinion it is a bug and should be fixed.

I also wish you could configure EA so that you could do a destructive delete on tagged values with data.  For example.  Say you have an element using stereotype "A" and "A" has a tagged value called "1".  If you change to stereotype "B" (which has tagged value "2" defined), then EA should be able to be configured to delete tagged value "1" and add tagged value "2" (regardless of whether "1" had any value).

Same goes for an explicit sync.

You could log the above as a feature request.

The only workaround I know is to write an add-in to do it (and call sync tagged values from code - there is another post somewhere telling you how to do it - an undocumented API).  Problem here is performance/ scope.  I'm guessing the API would sync the whole project - when all you want it to do is add the tagged values for the specific stereotype to the specific element being changed by the user.

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"

ch

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Synch tagged values
« Reply #2 on: June 30, 2008, 10:56:29 pm »
Hi,
thank you very much for your reply.

Quote
...and call sync tagged values from code - there is another post somewhere telling you how to do it - an undocumented API)...
It would solve my problem, but I can't find this post. Can you post a link?

Thank you!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile

ch

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Synch tagged values
« Reply #4 on: July 01, 2008, 12:06:00 am »
Thanks.

By the way: Default-value of "This post was made in the last..." in search shouldn't be set to "week" ;-)