Attaching URLs to UML diagram elements

You can attach a URL, which is a UML model element, to other diagram elements to provide more information. A URL can reference a Web site or a file that is relevant to the element. For example, you can link to a Web site that contains details about a component in your design model, or attach a document that describes a use case in your use-case model. You can also add images to your diagrams by attaching a URL that references the image file.

You must have a diagram open.
To attach a URL to a UML diagram element:
  1. In the Palette, click URL and click anywhere in the diagram.
  2. In the URL Input Dialog window, type a Web address or file path.
  3. Optional: To use relative path references, select the Use relative path representation for all file references check box.
  4. Click OK.
  5. To attach the URL to a diagram element, in the Palette, click Comment Attachment.
  6. In the diagram editor, click the URL and then click a diagram element.
In the Model Explorer view, the URL is created in the package that contains the diagram and not in the element to which the URL is attached.
Tip: You can change the appearance and format of the URL in the Properties view.
Related concepts
URLs
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.