Tutorial: Learning to Create Java Custom Toolkit Support > Learning to Support a Simple Control > Creating a New UFT Java Add-in Extensibility Project

Creating a New UFT Java Add-in Extensibility Project

In this section you create a new project for the ImageControls toolkit support. To do this, you use one of the wizards provided by the UFT Java Add-in Extensibility plug-in in Eclipse.

  1. Open the New UFT Java Add-in Extensibility Project wizard.

    1. In Eclipse, select File > New > Project. The New Project dialog box opens. Expand the Unified Functional Testing folder and select UFT Java Add-in Extensibility Project.

    2. Click Next. The UFT Java Add-in Extensibility Project screen opens. The details on this screen may vary, depending on the version of Eclipse that you are using.

  2. Enter the UFT Java Add-in Extensibility project details.

    1. In the Project name box, enter ImageControlsSupport. Select Create separate folders for sources and class files. (In earlier Eclipse versions this option is named Create separate source and output folders.) For more information on this dialog box, see the Eclipse Help.

    2. Click Next. The Custom Toolkit Details screen opens.

  3. Enter the custom toolkit details.

    In this screen, you provide the details of the ImageControls toolkit so that the wizard can generate a corresponding custom toolkit support set.

    1. Define the following information:

      • In the Unique custom toolkit name box, you enter a name that uniquely represents the custom toolkit for which you are creating support. The new toolkit support class is given this name plus the suffix-word Support. Providing unique toolkit names allows a single UFT installation to support numerous custom toolkit support sets simultaneously.

        After you develop the support and deploy it to UFT, UFT displays the custom toolkit name in all of the dialog boxes that display lists of add-ins or supported environments.

        Enter the name ImageControls.

      • In the Support toolkit description box enter: ImageControls toolkit support.

      • The Base toolkit list contains a list of toolkits for which UFT support already exists. After you create support for your own toolkits, they are displayed in the list as well.

        The ImageButton custom class extends an AWT component, so keep the default selection AWT as the Base toolkit.

      • You must specify the location of the custom classes you want to support in this toolkit. When the new Java Add-in Extensibility project is built, these classes are added to the project build path. You can specify .jar files or file system folders for the class location.

        In the Custom toolkit class locations area, click Add project to select the Eclipse Java project containing the custom classes for the ImageControls toolkit. The Select Project dialog box opens and displays the projects in the current Eclipse workspace.

    2. Select the ImageControls check box. Click OK. The ImageControls project is added in the Custom toolkit class locations box.

    3. Click Finish. The Project Summary screen opens.

  4. View the Project Summary wizard screen.

    Review the details of the project and click OK.

The wizard creates a new Java Add-in Extensibility project named ImageControlsSupport, containing the basic files required for custom toolkit support. For more information, see Understanding Your New Custom Toolkit Support Set.