Une image contenant texte, signe

Description générée automatiquement

Apply Class Tags to Object

 

Overview

This helper allows easy transfer of tag data from a class to an instance of that class.

 

Applicable To

Object

Menu Entry

Power Pack Architecture Tools Apply Class Tags

Demonstration

Watch the Video

 

This helper may be invoked manually but is also automatically triggered by the application of a stereotype (see below). When triggered it synchronizes tag data from a class to an instance of that class.

Pre-Requisites

1.     A stereotype applicable to both classes and objects:

A screenshot of a computer

AI-generated content may be incorrect.

2.     Plugin method property is set:

To have the helper trigger when the stereotype is applied, set the following property on that stereotype:

Model.Stereotype.PluginMethodToRunOnApplyWithGUID

The value of the property should be set to:

applyTagValuesFromClassStereotype

A screenshot of a computer

AI-generated content may be incorrect.

Operation

To trigger the helper:

·       Create an instance of a class that has the stereotype

·       Apply the same stereotype to the instance

 

The helper will then take any values from the tags on the class and synchronize them to the instance. Note that only tags on the applicable stereotype(s) are synchronized. Local tags are ignored. Tags on stereotypes not applied to both are ignored.

 

A computer screen shot of a computer

AI-generated content may be incorrect.