|
|
Apply Class Tags to Object |
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 |
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.
1. A stereotype applicable to both classes and objects:

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

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.
