Adding packages and files to a project


You can add packages and files (including source, HTML, and plain text files) to a project so that they are viewable on the Projects tab in the Explorer. This enables you to view and access all of the files crucial for your project from one place. In addition, it enables you to compile all project files at the same time.

This does not affect which files or file systems are mounted under Filesystems in the Explorer or which files are available for editing. The files mounted in Filesystems are always available for editing, whether you have added them to the project or not.

To add an existing file or package to a project:

You can also add existing files or packages to a project by selecting files or packages under the Filesystems tab in the Explorer and then choosing Tools | Add to Project from the contextual menu or Tools | Tools | Add to Project from the main menu.

When you switch to the tab of your project in the Explorer, the files you have added will appear under the main project node. You can work with the files from either the project's tab or the Filesystems tab in the Explorer.

Important: The package or file that you have added will appear under the Project tab as a link. If you delete its node, the files in its hierarchy will be deleted from the project but will remain in Filesystems. However, if you delete any of other the nodes in the hierarchy, those files will be completely deleted from Filesystems.

When you are working in the Explorer with the Project tab selected, you can create new objects by using the contextual menus of the Explorer nodes. When you create new files this way, the objects are added to the selected file system (as represented on the Filesystems tab) and to the project (as represented on the Project tab).

To add a new file to the root of a project:

You can also create new files in existing packages, much as you would under the Filesystems tab in the Explorer.

To add a new file to a package in the project:

Contents Prev Next Index