blob: 33751e19bc23fb0c672c637f268de8f401d14453 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../book.css" rel="STYLESHEET" CHARSET="ISO-8859-1" TYPE="text/css">
<link rel="stylesheet" type="text/css" href="../content/PLUGINS_ROOT/PRODUCT_PLUGIN/book.css">
<meta content="Copyright (c) 2010 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at Contributors: IBM Corporation - initial API and implementation" name="copyright">
<title>Add a Library to the Global Scope</title>
<h1>Add a Library to the Global Scope</h1>
Using the project properties for any JavaScript project you can very simply add a library to the global scope using the following
<p>Open the properties dialog for a given JavaScript project and navigate to the <strong>JavaScript > Include Path</strong> page</p>
<p><img src="../images/include-path.png" alt="The JavaScript > Include Path properties page"></p>
<p>Next, select the <strong>Add JavaScript Library...</strong> button to start the library wizard. </p>
<p><img src="../images/add-lib-wizard.png" alt="The Add JavaScript Library wizard"></p>
<p>In the wizard, select the desired type of library to add and select the <strong>Next ></strong> button.
Some libraries may have additional configuration pages, fill them out as needed, and complete the configuration by clicking the <strong>Finish</strong> button.</p>
<p><img src="../images/add-lib-mozilla-wizard.png" alt="The Mozilla library configuration page"></p>
<p>Finally, click the <strong>OK</strong> button to close the <strong>JavaScript > Include Path</strong> properties page</p>
<p><img src="../images/include-path-new-lib.png" alt="The new library added to the JavaScript > Include Path properties page"></p>