Adding a Library Folder to JavaScript Libraries

This procedure describes how to add a library folder to a the JavaScript libraries in your project. Library folders are resources containing source code that you would like to be available to functionalities such as Content Assist, but which are contained in files rather than libraries. Including JavaScript libraries and library folders in your project saves you time in writing and debugging code, as you are re-using debugged code.

JavaScript libraries can only be added to PHP projects with JavaScript support enabled.

 

 

Instructions on how to complete a procedure

  1. To add a JavaScript library folder to your project:

    1. Select Configure from the right click menu of you project in your project directory and select Convert to JavaScript Project.

    2. Go to Project | Properties | JavaScript | Include Path - or - Select Properties | JavaScript | Include Path  from the right click menu of the project folder in your project directory.
      Your project's properties page opens.

    1. In the JavaScript Libraries Properties page click Add a Library Folder.
      The "Library Folder Selection" dialog opens.

    2. Select a folder in the "Library Folder Selection" dialog or create a new folder by clicking Create New Folder.

    3. To apply changes click OK.

Functionalities such as Content Assist will now be able to access the JavaScript library folder. You can see the library folder in the "JavaScript Resources" node in your Project directory.

For information on Managing libraries see Managing JavaScript Libraries.