Creating a new transformation model

Transformation models (XML files of type ".txm") contain information about the model schema and relates model types to Eclipse projects, folders and files to be generated. Transformation models are edited using the Exemplar Analysis tool in the Design Pattern Toolkit.
This tool assumes that you have one or more projects in your workspace that contain an "exemplar" or example of the kind of application you wish to generate with the transformation being authored. Further, the tooling assumes that this exemplar is implemented using all of your best practices, guidelines, etc. The text source will be used as an initial set of templates for your transformation.

To create a new transformation model, click on File -> New -> Other and select the Design Pattern toolkit category. Selecting the Exemplar Analysis and clicking next will take you into the new transformation model wizard. The first page is the standard new resource page on which you specifiy the project and filename of the new transformation model. The second page lets you provide required pattern metadata:

Exemplar Projects This is a list of all projects in your workspace. Select the project or projects that contain the exemplar from which you will derive the transformation model.
Import existing transformation model from file Check this checkbox if you want to initialize the model schema to a model found in an existing file. For example, if you wish to author a transformation that uses the same model as an existing transformation, you can point to the .patternSchema file for that other transformation. Pointing to an XML file will let you author a pattern that expects the same model as exemplified by the XML file.
Model File This is the file from which to get the new model transformation's schema if the above checkbox is checked.

Clicking on Finish will create the transformation model file and open the Exemplar Analysis tool on that new file.


© Copyright IBM Corporation 2000, 2005. All Rights Reserved.