Adding Translators

About this task
You can extend the Migration Tool and add your own Translators in your plug-in project.
To add a Translator, do the following:
  • Create a Plug-in project:
    • In the Rational® Application Developer, click File > New > Others... Expand Plug-in Development and select Plug-in Project, and click Next.
    • Enter the name of the project, and click Next, and then in the dialog box that pops up, click Finish.
    • The Plug-in project is created.
  • Add new extensions:
    • Click the Extensions tab, and click Add....
    • The New Extension dialog box pops up:

      Screen capture of the New Extension window

    • Clear the Show only extension points from the required plug-ins checkbox.
    • There are four extension points available: ConfigDseIniTranslator, ConfigXMLTranslator, JavaTranslator, and JspTranslator. Select the extension points, and click Finish to add these extensions:

      Screen capture showing the extension points

  • Create the extension instance. Take JavaTranslator for example:
    • Right-click com.ibm.btt.tools.migration.JavaTranslator, and select New > Translator.

      Screen capture showing how to add translators

    • The extension instance is created.
  • In the right panel Extension Element Details, click the type dropdown list, and select the extension type and then click Browse... to implement the corresponding Translator interface.

    Screen capture showing the Extension Element Details