Includes Mapping Properties

The Includes Mapping Properties page allows you to set workspace locations for paths which are included within your project.

 

To access the Includes Mapping Properties page, right-click a PHP project in PHP Explorer view and select Properties | Resource -or- select the project and from the menu bar go to Project | Properties | Includes Mapping Properties.

The Include Mapping process allows you to specify a location within your project for files which are included from your server/external file system.
This will affect the  code assist and refactoring / organize includes operations available within the project.

 

 

Usage Example

Example:

In your code you include an 'a.php' file from C:/Documents and Settings/abc:

During the development process, you want the refactoring/organize includes and code assist options available to you in the code to be taken from a file called a.php which is situated in 'folder1' of your 'abc' project.

In order to achieve this, you should map the include path 'C:/Documents and Settings/abc/' to '/abc/folder1'.

Content for refactoring/organize includes and code assist operations will now be taken from the a.php file situated in folder1 of your 'abc' project.

 

 

Instructions on how to complete a procedure

To create a new Include Map:

  1. Click New.
    The New Include Mapping dialog is displayed.

  1. In the 'Include' field, enter the server/external file system path

  2. Click the Browse button to the right of the 'Map to' field and select a folder in your project to which the include path will be mapped.

  3. Click OK.
    The Include Mapping will be added to the Include Mapping list.

Whenever a file is included from the selected path, the refactoring/organize includes and code assist options available to it will be taken from the file in the location to which it has been mapped in your project.