Extending UML-to-Real-Time-C++ transformations

You can extend a UML-to-Real-Time-C++ transformation by creating a transformation extension point in a plug-in and a TransformationExtension element that defines the target transformation.

Before you begin

About this task

To create a UML-to-Real-Time-C++ transformation extension, you must create a transformation extension point in a plug-in. After you create a new plug-in project, you can create a TransformationExtension element in the plug-in manifest file of the project. A plugin.xml file is generated that contains an extension point named com.ibm.xtools.transform.core.transformationExtensions. This extension point contains a TransformationExtension element that defines a transformation extension. The targetTransformation attribute in the TransformationExtension element specifies the name of the transformation to extend.

You can change the order of the elements in an ExtendTransform element by editing the plugin.xml file in the transformation extension plug-in. For each element that you add, in the index field, you specify where to insert the new element in the extended transform. The index value must be zero-based. If you do not specify a value, the new rule, extractor, or transform is appended to the list of elements that compose the extended transform.

After you create a UML-to-Real-Time-C++ transformation extension point and define a transformation extension, you can add rules, extractors, transforms, and properties that implement the additional functionality.


Feedback