You can add transformations to existing Eclipse plug-ins
that contain a transformation provider. Typically, a plug-in contains
one transformation.
Before you begin
You
must have a plug-in manifest file open in the manifest editor. The plug-in manifest file must contain
at least one instance of a transformation provider extension point,
and at least one transformation provider.
Procedure
- In the plug-in manifest editor, on the Extensions tab,
in the pane under the All Extensions area,
click a TransformationProvider element and click Edit.
Tip: You can also right-click a transformation extension
point; then click . In the Extension Element Details area,
provide values for the required fields, and click .
For more information about the fields in the Extension
Element Details area, place the mouse pointer over the
name to display hover help.
- In the Transformation Authoring wizard, on the New Transformation
page, accept the default values or specify values that are appropriate
for your project.
Note: For more information about the other
fields on this page and the remaining pages in the wizard, see the
context-sensitive help by pressing F1 when
that page is displayed in the product. If you are using the Linux platform,
for more information about the other fields on this page and the remaining
pages in the wizard, see the context-sensitive help by pressing Shift+F1 when
that page is displayed in the product.
- Optional: In the Properties table, specify
properties that define the behavior of the transformation:
- To add a property to the transformation, beside the Properties
table, click Insert and specify the values
for the columns in the table.
- To delete a transformation property, click a row in the Properties
table and click Delete.
- Optional: To complete the remaining pages in
the wizard, click Next.
- Click Finish.
Results
A transformation element is created in the plug-in manifest
file. The
src/project name/transformationProvider folder
contains the generated Java™ file
for the transformation. The transformation provider registers the
transformation with the transformation service. For each property
that you create, a Property element is created in the plug-in manifest
file.
Note: If you create a new plug-in by using the Plug-in with Transformation
template, you can specify this information on the New Transformation
page of the New Transformation Authoring Project wizard.