Book a Demo

Author Topic: RTF edit for tagged values  (Read 4414 times)

Jacky

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
RTF edit for tagged values
« on: May 30, 2009, 03:14:53 am »
A tagged value of type String is defined for some Stereotype in some Profile.

After importing the Profile and applying the Stereotype on some element, I found that the tagged value's edit control is a single-line text edit.

How to specify to use a multi-line text edit, or an RTF edit?
My theories are always correct, just apply them to the right reality.

Jacky

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: RTF edit for tagged values
« Reply #1 on: May 30, 2009, 10:40:49 am »
I didn't understand some terms, hence the question.

But the terms are really confusing. After clicking "Settings/UML/Tagged Value Types", in the current tab-page there are "Tag Name" and "Defined Tag Types". It is confusing because two different names are used to represent the same kind of entities, "Tag Type" in this case.

And, after adding a Tag to some element, name of the Tag is the same as the Tag Type.

Name of a Tag is forced to be the same as the type name of the Tag. It is strange, isn't it? And it may make the model confusing when one Tag Type is extensively used in different places.
My theories are always correct, just apply them to the right reality.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: RTF edit for tagged values
« Reply #2 on: June 01, 2009, 09:58:55 am »
The Sparx Team
[email protected]

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: RTF edit for tagged values
« Reply #3 on: June 01, 2009, 08:30:18 pm »
Ok, but... how to define this "Memo" field in a profile diagram?

In the stereotype element, I created an attribute (future Tagged Value) and set its type as "Memo". Save the profile, import it, and the tag is single-line.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: RTF edit for tagged values
« Reply #4 on: June 02, 2009, 09:19:45 am »
Quote
Ok, but... how to define this "Memo" field in a profile diagram?
First, go to Settings > UML > Tagged Value Types and add a type with the name of the tagged value that you want to create. In the Detail field, enter Type=Memo; (it is case sensitive).

Next, go to your profile diagram and give your stereotype an attribute with the same name as the tagged value type. Save your profile.

Next, go to Tools > Generate MDG Technology File and follow the instructions of the technology wizard. When asked, include the profile that you saved in step 2 and include the tagged value type that you saved in step 1.

Finally, go to Settings > MDG Technologies > Advanced > Add > Add Path and point to the folder that you saved your technology in. Restart EA and your profile will appear under More tools... in the Toolbox.

More details in the help file...
The Sparx Team
[email protected]