Calling all UML Profile and MDG Gurus
I have created and am still creating many UML profiles, wrapped up as MDG.
One aspect has always frustrated me regarding the use of user defined structured tagged values. Lets' give an example
1) Create a new user defined tagged value (
Settings | UML Types...) say [highlight]MyMemo[/highlight] which has a definition of [highlight]Type=Memo;[/highlight]
2) Create a Stereotype called [highlight]MyStereo [/highlight]which extends the metaclass UML::Class (it could be any other metaclass actually)
3) Add an attribute called MyMemo of type MyMemo to MyStereo
4) Save the UML profile.
5) Create the MDG technology (ID MyProfile) and select to add the profile and tagged values, and yes MyMemo appears and can be duly added
Now we test the profile.
So we add the path to our new MDG restart EA and create a new project and create a simple class diagram and add and element of type MyStereo to it. Looking at it properties, we find a tagged value correctly in the profile named section
BUT it does not have type MyMemo, but type String

The only work arounds I have are
1) Export the tagged values from the project containing the UML profile
2) Import the tagged values to ALL projects that use the profile
OR
In the profile definition, name the attribute of MyStereo [highlight]MyProfile::MyMemo[/highlight] (that is prefix the tagged value name with the ID of MDG technology)
The last is the most elegant and results in the correct type
BUT the name of the tagged value in the element dialog is MyProfile::MyMemo
Question: using method 2 how do I get rid of the MDG ID prefix in the properties?
It can be done (look at BPMN or SysML profiles .... but how?) ... preferably without hacking the MDG XML.
Cheers
Phil