Creating files

The file is shown as a box-like element in the diagram, with the «File» notation in the top of the box.

Procedure

  1. Click the File button on Diagram Tools, or select Edit > Add New > File.
  2. Click, or click-and-drag, in the drawing area. By default, files are named file_n, where n is an integer greater than or equal to 0.
  3. Edit the default name, then press Enter.

Results

The following figure shows an object model diagram that contains files.

Object model diagram with files

You can specify whether file variables and functions are displayed in diagrams using the Display Options feature. The Display Options window for files is identical to that for classes, except the tab names are Variables instead of Attributes and Functions instead of Operations.

Files can be owned by packages only. File elements are listed in the browser under the Files category under the owning package, as shown in this example.

Browser showing Files category

Feedback