Specifying the Element Types

The Eclipse function package provides support for three different linked Eclipse element types:

The resource type of an Eclipse resource is identified by its match name. You need to specify all three linked element types.

Specifying an Eclipse Project

To specify an Eclipse project element type:

  1. Right-click the Element Types category folder, and then click New Child > Eclipse > Eclipse Resource .

    This opens the Enter Object IDs dialog box.

  2. In the New ID field, next to the Eclipse Resource field, type TUTORIAL_ELE_EclipseProject.
  3. In the New ID field, next to the Eclipse Resource ID field, type TUTORIAL_IDDEF_EclipseResource.
  4. In the New ID field, next to the Eclipse Resource Identifier field, type TUTORIAL_PROP_ResourceID.
  5. In the New ID field, next to the Element Type field, type TUTORIAL_Prop_EleType.
  6. Click OK.

    Entries in the ID Definitions, Element Types, and Properties category folders.

  7. In the Element Types category folder, right-click TUTORIAL_ELE_EclipseProject.
  8. Click Edit.

    This opens the Edit Properties dialog box.

  9. Double-click the Matchname value cell, and then type ECLIPSE_PROJECT.
  10. Click OK.
  11. You need to add the key property TUTORIAL_PROP_ResourceID as a property reference to the newly created linked element type TUTORIAL_ELE_EclipseProject:

    Right-click TUTORIAL_ELE_EclipseProject, and then click New Child > Property .

    This adds the Has Property as a child to the TUTORIAL_ELE_EclipseProject element type.

  12. Right-click Has Property, and then click Edit.

    This opens the Edit Properties dialog box.

  13. Double-click the Target ID value cell, and then click TUTORIAL_PROP_ResourceID.
  14. Click OK.
  15. You can now create the linked element type Eclipse folder.

    Right-click the Element Types category folder, and then click New Child > Eclipse > Eclipse Resource .

    This opens the Enter Object ID dialog box.

  16. In the New ID field, type TUTORIAL_ELE_EclipseFolder.
  17. Click OK.

    This adds the new linked Eclipse resource in the Elements Types category folder.

  18. Right-click TUTORIAL_ELE_EclipseFolder, and then click Edit.

    This opens the Edit Properties dialog box.

  19. Double-click the Matchname value cell, and type ECLIPSE_FOLDER.
  20. Click OK.
  21. Right-click TUTORIAL_ELE_EclipseFolder, and then click New Child > Property .
  22. Right-click Has Property, and then click Edit.

    This opens the Edit Properties dialog box.

  23. Double-click the Target ID value cell, and then click TUTORIAL_PROP_ResourceID.
  24. Click OK.
  25. Right-click the Element Types category folder, and then click New Child > Eclipse > Eclipse Resource .

    This opens the Enter Object ID dialog box.

  26. In the New ID field, type TUTORIAL_ELE_EclipseFile.
  27. Click OK.
  28. Right-click TUTORIAL_ELE_EclipseFile, and then click Edit.

    This opens the Edit Properties dialog box.

  29. Double-click the Matchname value cell, and type ECLIPSE_FILE.
  30. Click OK.
  31. Right-click TUTORIAL_ELE_EclipseFile, and then click New Child > Property .
  32. Right-click Has Property, and then click Edit.

    This opens the Edit Properties dialog box.

  33. Double-click the Target ID value cell, and then click TUTORIAL_PROP_ResourceID.
  34. Click OK.

    Your element types should look like:


    Eclipse Element Types