The project view, as mentioned in the general description of the GPS window, is one of the views found by default on the left of the window. It shows in a tree structure the project hierarchy, along with all the source files belonging to the project, and the entities declared in the source files.
It is worth noting that the project view provides a tree representation of the project hierarchy. If a project is imported by multiple other projects in the hierarchy, then this project will appear multiple times in the project view.
Likewise, if you have edited the project manually and have used the
limited with
construct to have cycles in the project
dependencies, the cycle will expand infinitely. For instance, if
project a imports project b, which in turns imports
project a through a limited with
clause, then expanding
the node for a will show b. In turn, expanding the node
for b will show a node for a, and so on.
The contextual menu in this project view provides a number of items to modify the project hierarchy (what each project imports), as well as to visualize and modify the attributes for each projects (compilation switches, naming scheme, ...)
The following entries are available in the contextual menu:
Project->Save All
.
Any time one or several projects are modified, the contents of the project view is automatically refreshed. No project is automatically saved. This provides a simple way to temporarily test new values for the project attributes. Unsaved modified projects are shown with a special icon in the project view, displaying a pen mark on top of the standard icon:
Note that in all tree views in GPS, you can use the <+> and <-> keys to expand and collapse nodes (e.g. projects and directories).