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 Identifier field, type TUTORIAL_PROP_ResourceID.
  4. In the New ID field, next to the Eclipse Resource ID field, type TUTORIAL_IDDEF_EclipseResource.
  5. Click OK.

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

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

    This opens the Edit Properties dialog box.

  8. Double-click the Matchname value cell, and then type ECLIPSE_PROJECT.
  9. Click OK.
  10. 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.

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

    This opens the Edit Properties dialog box.

  12. Double-click the Target ID value cell, and then click TUTORIAL_PROP_ResourceID.
  13. Click OK.
  14. 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.

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

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

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

    This opens the Edit Properties dialog box.

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

    This opens the Edit Properties dialog box.

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

    This opens the Enter Object ID dialog box.

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

    This opens the Edit Properties dialog box.

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

    This opens the Edit Properties dialog box.

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

    Your element types should look like:


    Eclipse Element Types