I’m documenting my experiences using the Eclipse JSDT.
In this post I will add a 3rd party library. I will describe a success (mooTools) and a failure (jQuery).
Update: There is improved information in this post: Adding Third Party Library Redux.
Previously
Adding mooTools Library
MooTools is one JavaScript library I’ve been playing with lately.
First download the uncompressed version (mooTools-1.2.4-core-nc.js) and save it somewhere.
Now in Preferences, add the library. Make sure after adding the library, you also add the mooTools .js file you previously downloaded. It should look like this:
MooTools Content Assist
Now create a Static Web Project.
- Expand the project in Project Explorer and right click on JavaScript Resources and select Properties.
- From this dialog, you can add MooTools.
- Add JavaScript Library – User Library – Next – Select moo Library you already added. Finish.
You should see this in Explorer:
Content Assist
MooTools Problems
Supposedly, if your 3rd party library uses jsDoc, the editor functionality is more robust. MooTools does not seem to document with jsDoc.
jQuery Failure
Dojo? Prototype? YUI?
I’m wondering what experiences others have had adding 3rd party libraries or their own libraries.
Next: Adding Third Party Library Redux
