Languages such as Java support package structures or namespaces. Enterprise Architect lets you specify a package as a namespace root, which denotes where the namespace structure starts; all subordinate packages below this point are generated as namespaces to code.
To define a package as a namespace root, right-click on the package in the Project Browser window and select the Code Engineering | Set as Namespace Root menu option. The package icon in the Project Browser window changes to include a colored corner ().
Once you have set a namespace root, Java code generated beneath this root automatically adds a package declaration at the head of the generated file indicating the current package location.
To view a list of namespaces, select the Settings | Model Namespaces menu option. The Namespaces dialog displays.
Right-click on an entry to remove the namespace definition, or to locate the package in the Project Browser window.