Creating URLs to elements in UML models

A URL is a stereotyped comment object that you can use to navigate to a specified URL, file system element, or an element in the workspace. A URL has a type property as a further specialization of the URL. The traceability feature treats URLs as specifications.

Procedure

  1. In the Project Explorer view, right-click an element; then click Add UML > URL. You can add a URL from in the Palette, under UML Common, click URL and click in the diagram editor.
  2. Specify a URL by typing one, browsing to a file, or browsing the workspace.
  3. Optional: Type a display name for the URL.
    Tip: By default, URL image is displayed in the UML link on a diagram. To display the name of the URL instead of the image, go to Windows > Preferences > Modeling > UML Diagrams > URL presentation, and then select Show URL link. Now, you can create a URL link on the diagram, set the URL path to local image file, and show the display name on the diagram.
  4. Optional: Specify a type for the URL.
  5. Optional: Specify an icon for the URL.
  6. Click OK.
    Tip: To navigate to a link from an element, in the diagram editor, right-click the element and click Navigate > To Link. The element that was referenced in the element link is selected in the Project Explorer view.

What to do next

To add URLs to elements from the Properties window, on the Documentation page, click the Add Link icon (Add link icon.).

Feedback