Specifying the Tools Descriptors

You need to specify four tools for this tutorial:

Specifying a Tool to Get All Projects

To specify a tool to get all projects:

  1. Right-click the Tool Descriptors category folder, and then click New Child > Eclipse > Get Eclipse Projects .

    This opens the Enter Object ID dialog box.

  2. In the New ID field, next to the Get Eclipse Projects Field, type TUTORIAL_TOOL_GetProjects.
  3. In the New ID field, next to the Eclipse Resources Field, type TUTORIAL_FD_EclipseResources.
  4. In the New ID field, next to the Project Nature ID Field, type TUTORIAL_PROP_ProjectNature.
  5. Click OK.

    This creates a tool with a String Input Parameter and File Output Parameter and additional entries in the Properties and File Descriptors category.

  6. Right-click String Input Parameter, and then click Edit.

    This opens the Edit Properties dialog box.

  7. Double-click the Static Value value cell, and then type .*com.microfocus.eclipse.*
  8. Click OK.

Specifying a Tool to Get Children of an Eclipse Resource

To specify a tool to get children of an Eclipse resource:

  1. Right-click the Tool Descriptors category folder, and then click New Child > Eclipse > Get Resource Children .

    This opens the Enter Object ID dialog box.

  2. In the New ID field, next to the Get Resource Children field, type TUTORIAL_TOOL_GetResChildren.
  3. In the New ID field, next to the Filter field, type TUTORIAL_PROP_ResourceFilter.
  4. Click OK.

    This creates a tool with a String Input Parameter and a File Output Parameter and an additional entry in the Properties category.

  5. Click OK.

Specifying a Tool to Rename an Eclipse Resource

To specify a tool to rename an Eclipse resource:

  1. Right-click the Tool Descriptors category folder, and then click New Child > Eclipse > Rename Resource .

    This opens the Enter Object ID dialog box.

  2. In the New ID field, type TUTORIAL_TOOL_RenameRes.
  3. Click OK.

    This creates a tool with two String Input Parameter children.

  4. Right-click the second String Input Parameter, and then click Edit.

    This opens the Edit Properties dialog box.

  5. Double-click the Target ID Parm value cell, then click TUTORIAL_PROP_NewName.
  6. Double-click the Parameter From value cell, and then click Previous_Tool.
  7. Click OK.

Specifying a Dialog Tool to Accept a New Name for an Eclipse Resource

To specify a dialog tool to accept a new name for an Eclipse resource:

  1. Right-click the Tool Descriptors category folder, and then click New Child > AWM > Open Modeled Dialog .

    This opens the Enter Object ID dialog box.

  2. In the New ID field, type TUTORIAL_TOOL_DIA_RenameInput.
  3. Click OK.
  4. Right-click TUTORIAL_TOOL_DIA_RenameInput, and then click Edit.

    This opens the Edit Properties dialog box.

  5. Double-click the Description value cell, and then type Rename resource &TUTORIAL_PROP_ResourceID..
  6. Double-click the Title value cell, and then type Eclipse Tutorial.
  7. Click OK.
  8. Right-click TUTORIAL_TOOL_DIA_RenameInput, and then click New Child > Dialog Field .
  9. Double-click the Target ID Parm value cell, and then click TUTORIAL_PROP_NewName.
  10. Click OK.
  11. You can now preview the dialog box that the Open Modeled Dialog tool creates:

    Right-click TUTORIAL_TOOL_DIA_RenameInput, and then click Preview Dialog.

    This opens a preview of the Eclipse Tutorial dialog box.


    Eclipse Tutorial Dialog Box
  12. Click Cancel.

    This closes the preview dialog box.

    Your four tool descriptors should look like:


    Tool Descriptors