Chapter 9 Generating and Reverse Engineering OO Source Files


Defining the source code package

For those languages that support the concept of packages and/or namespaces, classes must be generated in packages that are used as qualifying namespace. You can define these qualifying packages one by one in the model as necessary, or insert a base structure automatically via the Add Package Hierarchy command.

Steps To insert a base package structure:

  1. Right-click the Model in the Browser, and select Add Package Hierarchy from the contextual menu.
  2. Enter a package hierarchy in the text field, using periods or slashes to separate the packages. For example:

com.mycompany.myproduct.oom

or

com/mycompany/myproduct/oom

The corresponding package hierarchy will be created in the Browser. All diagrams and objects (except global objects ) existing in the model will be moved to the lowest level package of the hierarchy.

 


Copyright (C) 2008. Sybase Inc. All rights reserved.