Project file views

Projects files and elements are displayed in the C/C++ Projects view and in the Navigator view.

C/C++ Projects view

Displays, in a tree structure, only elements relevant to C and C++ projects. In this view you can do the following:

Files that you select in the C/C++ Projects view affect the information that is displayed in other views.

C/C++ Projects View

Navigator view

The Navigator view provides a hierarchical view of all the resources in the workbench, not just your C/C++ resources. From this view, you can open files for editing or select resources for operations such as exporting.

Right-click any resource in the Navigator view to open a pop-up menu from which you can perform operations such as copy, move, create new resources, compare resources, or perform team operations. For a description of what each menu item does, select an item and press F1.

By default, the Navigator view is included in the Resources perspective. To add it to the current perspective, click Window > Show View > Navigator.

Navigator View

Toolbar icons

Icon Name Description
Minimize Console. Minimizes the view.
Maximize Console Maximizes the view.
Back Icon Back This command displays the hierarchy that was displayed immediately prior to the current display.  For example, if you Go Into a resource, then the Back command in the resulting display returns the view to the same hierarchy from which you activated the Go Into command. The hover help for this button tells you where it will take you. This command is similar to the Back button in a web browser.
Forward Icon Forward This command displays the hierarchy that was displayed immediately after the current display.  For example, if you've just selected the Back command, then selecting the Forward command in the resulting display returns the view to the same hierarchy from which you activated the Back command. The hover help for this button tells you where it will take you. This command is similar to the Forward button in a web browser.
Up Icon Up This command displays the hierarchy of the parent of the current highest level resource. The hover help for this button tells you where it will take you.
Collapse All Icon Collapse All This command collapses the tree expansion state of all resources in the view.
Link with Editor Icon Link with Editor This command toggles whether the Navigator view selection is linked to the active editor. When this option is selected, changing the active editor will automatically update the Navigator selection to the resource being edited.
Menu Icon Menu Click the black upside-down triangle icon to open a menu of items specific to the Navigator view.

Select Working Set
Opens the Select Working Set dialog to allow selecting a working set for the Navigator view.

Deselect Working Set
Deselects the current working set.

Edit Active Working Set
Opens the Edit Working Set dialog to allow changing the current working set.

Sort
This command sorts the resources in the Navigator view according to the selected schema:
  • By Name:  Resources are sorted alphabetically, according to the full name of the resource (e.g., A.TXT, then B.DOC, then C.HTML, etc.)
  • By Type:  Resources are sorted alphabetically by file type/extension (e.g., all DOC files, then all HTML files, then all TXT files, etc.).

Filters
This command allows you to select filters to apply to the view so that you can show or hide various resources as needed. File types selected in the list will not be shown in the Navigator.

Link with Editor
See the toolbar item description above.

For information about the Navigator view toolbar and icons, see Workbench User Guide > Concepts > Views > Navigator View.

For information about the pop up menu in the Navigator view, see Workbench User Guide > Reference > User interface information > Views and Editors > Navigator View.

For information about the Working Sets, see Workbench User Guide > Concepts > Workbench > Working sets.

Related concepts
CDT Projects
Working with existing code

Related tasks
Creating a project
Working with C/C++ project files

Related reference
C/C++ perspective icons

IBM Corporation Statement