TOC PREV NEXT INDEX DOC LIST MASTER INDEX




File > New > New Ada

Note: The command is available with Apex Ada and Apex Duo. It is used to create a an Ada object.

When you select the File > New > New Ada, the File New Ada dialog box appears. You can also invoke this operation using the icon on the top toolbar.

New Ada Dialog Fields:

Ada Types Pull Down Menus

There are two Create an empty Ada pull down menus. The default Ada types are Package and Spec. The following illustration shows all of the available types for an Ada object.

All combinations of units and parts are valid except for Task and Spec, and Task and Generic Spec. The file extensions are .1.ada for specifications, including generic specs, and .2.ada for bodies. If you omit the file extension, the appropriate extension will be appended to your object Name automatically. If you enter a file extension that is not consistent with the part, the file extension takes precedence over the part. The new object is generated using a file template that is based on the unit and part.

Name Field

You can create subunits associated with a parent unit by entering the subunit name in the format parent_unit_name.subunit_name. No consistency check is performed to check for the existence of the parent compilation units specified in the name of the subunit.

Context Field

If you attempt to create an Ada object with an invalid combination, extension, or name, an error message is displayed and the "create" operation fails.

File New Ada Check Boxes

Command Line Interface: create_ada


Rational Software Corporation 
http://www.rational.com
support@rational.com
techpubs@rational.com
Copyright © 1993-2001, Rational Software Corporation. All rights reserved.
TOC PREV NEXT INDEX DOC LIST MASTER INDEX TECHNOTES APEX TIPS