Using Wizards To Create New Ada Source Folders

There are two wizards defined for creating new folders. One wizard creates a new Ada source folder and "inserts" it into the GNAT project file. Another wizard creates a regular folder and in fact this wizard is just the standard Eclipse "new-folder" wizard, provided here for convenience. We describe the Ada Source Folder wizard below.

Invoking the New-Folder Wizards

There are many ways to select and invoke the GNATbench wizards. See Wizards for illustrations of all the different methods.

Perhaps the easiest way to invoke one of these new-folder wizards is to click on the down-arrow next to the GNATbench new-folder icon on the toolbar, as shown below, and select from the list. Clicking directly on the icon will invoke the "Ada Source Folder" wizard.

new folder wizard pulldown

New Ada Source Folder Wizard

Like the standard new-folder wizard, this Ada wizard lets user create nested folders, but in addition the wizard automatically adds the new folder to the Source_Dirs attribute in the GNAT project file (the .gpr file) so that contained sources will be included in builds.

You specify the parent to contain the new folder and specify the new folder name. The "Advanced" button allows creating a linked folder.

new ada folder wizard page