RAD Studio (Common)
ContentsIndex
PreviousUpNext
Working with a Namespace or a Package

Namespaces are used in implementation projects, and packages in design projects.

When dealing with a namespace or a package you have the following options:

  1. View a namespace or a package
  2. Open a namespace or a package
  3. Delete a namespace or a package
  4. Rename a namespace or a package

To view a namespace or a package:

  1. By default, a namespace element on a diagram displays the namespace contents.
  2. 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:

  1. Choose the Open Diagram command on the namespace diagram context menu.
  2. You can also double-click the namespace element on the diagram.

To delete a namespace or a package:

  1. Open the Diagram View or the Model View.
  2. Choose Delete on its context menu.
    Warning: Deleting a namespace also deletes all of its contents.

To rename a namespace or a package:

  1. Open a project.
  2. 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

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!