Namespaces are used in implementation projects, and packages in design projects.
Use the following techniques for a namespace or a package:
- View a namespace or a package
- Open a namespace or a package
- Delete a namespace or a package
- Rename a namespace or a package
To view a namespace or a package:
- By default, a namespace element on a diagram displays the namespace contents.
- You can use the context menu of a class or interface in a namespace to add fields and methods directly.
To open a namespace or a package:
- Choose the Open Diagram command on the namespace diagram context menu.
- You can also double-click the namespace element on the diagram.
To delete a namespace or a package:
- Open the Diagram View or the Model View.
- Choose Delete on its context menu.
Warning: Deleting a namespace also deletes all of its contents.
To rename a namespace or a package:
- Open a project.
- To rename a namespace, including changing the namespace name in all of its source files, do one of the following:
- Choose Rename on the context menu of a namespace in the Diagram View or in the Model View
- Invoke the in-place editor for the namespace element in the Diagram View or in the Model View
- Edit the Name field in the Object Inspector