The Includes Mapping Properties page allows you to map external paths which are required in your files to locations in 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 have code assist and refactoring / organize includes options available from a file located in your project when you include a file situated on the corresponding file system/server path.
This is done by mapping a server or file system path to a folder in your project.
|
|
|
Example: In your code you include an 'a.php' file from the server path localhost/abc/a.php: During the development process, you want the refactoring/organize includes and code assist options available to you in the code to be taken from an a.php file situated in 'folder1' of your 'abc' project. In order to achieve this, you should map the include path 'localhost/abc/' to '/abc/folder1'. |
PDT will behave as though a.php has been included from within your project and 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. |
|
|
|
To create a new Include Map:
|
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. |
|
|
|
Related Links: Refactoring |
|
|