6.1.1. Invoking the Ada Language-Sensitive EditorΒΆ

Simply double-click on an Ada file in either the GNAT Project Explorer or the Navigator to invoke the GNATbench language-sensitive editor. You can also right-click on the file in the Navigator and select “Open” from the contextual menu.

If opening an Ada source file does not invoke the GNATbench editor by default, there are two options available. The first is to right-click on the file icon in the Project Navigator, select “Open With” in the contextual menu, and then select “AdaCore’s Ada Editor”. This approach, however, must be followed each time a file is to be edited.

The much more convenient alternative is to associate the GNATbench editor with Ada files by default. This effect is achieved by associating the editor with the appropriate file name extensions, as illustrated below. Note that in the illustration we are associating the editor with the GNAT default Ada file name extensions; other extensions are equally possible.

Ada File Associations