Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: mogra69 on November 04, 2006, 08:18:42 pm

Title: Tagged Values Window Customization
Post by: mogra69 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?
Title: Re: Tagged Values Window Customization
Post by: Eve 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.
Title: Re: Tagged Values Window Customization
Post by: mogra69 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.
Title: Re: Tagged Values Window Customization
Post by: Eve 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.