Specifying Tree View Labels and Text Decorations

Specifying tree view labels

You need to specify a property which is taken as a label if an element of the corresponding element type is displayed in the Application Explorer view. To do this, in the Element Types category folder:

  1. Right-click TUTORIAL_ELE_Issue > Has Property #n -> TUTORIAL_PROP_ELE_TicketNumber.
  2. Click Edit.

    This opens the Edit Properties dialog box.

  3. Double-click the Tree View Label value cell.
  4. Click true.
  5. Click OK.
  6. Repeat steps 1 through 5 for the following element type properties:
    • TUTORIAL_ELE_IssueFilter > Has Property #n -> TUTORIAL_PROP_ELE_IssueFilter
    • TUTORIAL_ELE_PriorityFilter > Has Property #n -> TUTORIAL_PROP_ELE_Priority

Specifying text decoration

You also need to model a text decoration for the element type TUTORIAL_ELE_Issue. The text decoration is displayed as the label of an element in the Application Explorer view.

In this case, the text decoration will display:

  • The priority status and description for an issue displayed under 'All issues'.
  • Status and description for an issue displayed under a priority.

To create the text decoration:

  1. Right-click TUTORIAL_ELE_Issue.
  2. Click New Child > Text Decoration.

    This adds the child element Text Decoration #1 -> Behind the Label.

  3. Right-click Text Decoration #1 -> Behind the Label.
  4. Click New Child > Decoration Value.

    This adds the Decoration Value #1 as a child element.

  5. Right-click Decoration Value #1, and then click Edit.

    This opens the Edit Properties dialog box.

  6. Double-click the Target ID value cell, and then click TUTORIAL_PROP_ELE_Priority (SelectValue).
  7. Click OK.
  8. Right-click Decoration Value #1, and then click New Child > Visible Condition.

    This adds the Visible Condition element as a child to the Decoration Value #1 element.

  9. Right-click Visible Condition.
  10. Click New Child > Simple Condition.

    This adds the Condition child element to Visible Condition.

  11. Right-click Condition, and then click Edit.

    This opens the Edit Properties dialog box.

  12. Double-click the Target ID value cell, and then click TUTORIAL_PROP_STATIC_IssueFilter (String).
  13. Double-click the Value value cell, and then type All Issues.
  14. Click OK.
  15. Right-click Text Decoration #1 -> Behind the Label.
  16. Click New Child > Decoration Value.

    This adds the Decoration Value #2 as a child element.

  17. Right-click Decoration Value #2, and then click Edit.

    This opens the Edit Properties dialog box.

  18. Double-click the Target ID value cell, and then click TUTORIAL_PROP_ELE_Status (SelectValue).
  19. Click OK.
  20. Right-click Text Decoration #1 -> Behind the Label.
  21. Click New Child > Decoration Value.

    This adds the Decoration Value #3 as a child element.

  22. Right-click Decoration Value #3, and then click Edit.

    This opens the Edit Properties dialog box.

  23. Double-click the Target ID value cell, and then click TUTORIAL_PROP_ELE_Description (String).
  24. Click OK.

Your TUTORIAL_ELE_Issue element should look like this:


Tutorial_ELE_Issue Text Decoration