Adding translators

You can extend the migration tool and add your own translators in your plug-in project.

To add a translator, take the following steps:

  1. Create a plug-in project.
    1. In menu bar of IBM® Rational® Application Developer, click File > New > Others....
    2. Expand Plug-in Development, select Plug-in Project, and click Next.
    3. Enter the name of the project, and click Next.
    4. In the dialog box that is displayed, click Finish, and the plug-in project is created.
  2. Add new extensions.
    1. Click the Extensions tab.
    2. Under the Extensions tab, click Add.... The New Extension dialog box is displayed. See the following figure.
      Figure 1. Adding new extensions
      Screen capture of the New Extension window
    3. Clear the Show only extension points from the required plug-ins check box.
    4. Select the extension points, and click Finish to add the selected extension points. There are three extension points available: ConfigDseIniTranslator, ConfigXMLTranslator, and JavaTranslator. See the following figure.
      Figure 2. Selecting extension points
      Screen capture showing the extension points
  3. Create the extension instance (taking JavaTranslator for example here).
    1. Right-click the extension point com.ibm.btt.tools.migration.JavaTranslator, and select New > Translator. Then the extension instance is created. See the following figure.
      Figure 3. Creating extension instance
      Screen capture showing how to add translators
  4. Implement the corresponding translator interface.
    1. Open the panel Extension Element Details on the right.
    2. Select the extension type from the type dropdown list, and then click Browse.... See the following figure.
      Figure 4. Extension element details
      Screen capture showing the Extension Element Details
      Note: ConfigDseIniTranslator and ConfigXMLTranslator do not have this attribute.