Book a Demo

Author Topic: Tagged Values Window Customization  (Read 3151 times)

mogra69

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Tagged Values Window Customization
« on: November 04, 2006, 08:18:42 pm »
The sterotype attributes are displayed in the Tagged Values window for the selected model element in the diagram. This is standard EA functionality.

I have a custom UML Profile. I would like to manage the editing of the tagged values in the 'Tagged Values' window. For example, I have an attribute on the stereotype called 'SortByProperties' whose value is limited to a list of strings that are property names of the selected model element.

Any thoughts how this can be accomplished in the add-in?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Tagged Values Window Customization
« Reply #1 on: November 05, 2006, 01:06:19 pm »
It can be done without an addin.

In your profile, define an enumeration with attributes matching the strings you want allowed.  Set the type of SortByProperties to that enum type.  Possibly also set a default value for the attribute.

mogra69

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Tagged Values Window Customization
« Reply #2 on: November 05, 2006, 05:03:35 pm »
What if the possible choices for tagged value changes with the currently selected object in the diagram.

The SortByProperties is of type string. It is a comma-separated list of property names of the selected object. I cannot do this as an enumerated type.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Tagged Values Window Customization
« Reply #3 on: November 05, 2006, 06:32:24 pm »
Right, sorry.  I misread your question.

Don't think there's any access to this in the addins.  What you may be best doing is making them unchangeable using the UI, then having an addin function/dialog to select it.