Sparx Systems Forum
Enterprise Architect => Bugs and Issues => Topic started by: ch 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!
-
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.
-
Hi,
thank you very much for your reply.
...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!
-
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1205431696/0#0
-
Thanks.
By the way: Default-value of "This post was made in the last..." in search shouldn't be set to "week" ;-)