When you create a JET transformation
project, default values are provided for the transformation entry
point template, template loader classes, and other JET transformation
properties. To specify different values for these properties, you
must modify the extension element details in the plugin.xml file.
Before you begin
You must have a JET transformation
project in your workspace.
About this task
To specify the implementation details of a JET transformation:
Procedure
- In the Project Explorer view, in the
JET transformation project, right-click the plugin.xml file; then
click Open.
- Click the Extensions tab.
- Expand the org.eclipse.jet.transform extension; then click (transform).
- Edit the appropriate fields in the Extension
Element Details area of the page.
- In the startTemplate field, specify
the project relative path to the JET file that contains the transformation
implementation information. Typical values include template/control.jet
or template/main.jet.
- In the templateLoaderClass field,
specify the fully qualified name of the Java class
that loads the JET templates. This class is created by the JET compiler.
This field is infrequently changed.
- In the modelLoader field, specify
how the Transformation Input resource, for example, a file, folder,
or project, is converted into an in-memory model that the JET transformation
can process. The default value is org.eclipse.jet.emfxml, which indicates
that the resource should be loaded as an XML document. For other model
types, including UML models, specify org.eclipse.jet.emf. If you do
not specify a value, a model loader is selected based on the file
extension of the input model, or by the value of the modelExtension
attribute. The default value is blank, which is equivalent to org.eclipse.jet.emfxml.
You can use the org.eclipse.jet.modelLoaders extension point to extend
this value.
- Click .