Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to integrate Jquery with Eclipse?

Tags:

jquery

eclipse

Is it possible to integrate Jquery with Eclipse/MyEclipse? By integrating i mean, if i am working on any JSP or HTML file and i include jquery.js, then it should automatically start code assitance / autocompletion.


Edited:

I don't want to use APTANA ( 127 mb plugin ). If there is other way round please let me know.

like image 884
Rakesh Juyal Avatar asked Jun 25 '09 10:06

Rakesh Juyal


People also ask

How do I download jQuery plugins?

There are plenty of jQuery plug-in available which you can download from repository link at https://jquery.com/plugins.


4 Answers

http://marketplace.eclipse.org/content/jsdt-jquery try this. It supports jQuery 1.7

like image 135
borayeris Avatar answered Oct 04 '22 07:10

borayeris


I also did not want to download 127MB plugin, and I am doing a big PDT project in Eclipse so I was wary of a new perspective. I spent a bunch of time on Aptana and it never worked, so am sharing my steps to save someone else time. Note I have PDT installed already and some other notes say you have to install Aptana first. That doesn't help me too much.

  1. Help > Install New Software
  2. Add Aptana download site (http://update.aptana.com/install/studio/)
  3. Important - Uncheck "Group Items By Category"
  4. Select Aptana Web Development Tools (Subset of entire studio)
  5. Complete Installation
  6. On Restart of Eclipse you get a "Customize Aptana Studio" popup
  7. Under AJAX Libraries select JQuery
  8. Get "Aptana Support for jQuery"
  9. Complete installation (second restart of Eclipse)
  10. Open a JS file, Window - Open Perspective - Other - Aptana
  11. Still doesn't work, so Window - Preferences - Aptana / Editors / JavaScript / Code Assist
  12. Check JQuery
  13. File Restart
  14. File New Project - Aptana - Web Project
  15. Create JS file and paste whatever you were working on here, or start new

I tried all kinds of stuff to get the code-complete to work, I copied over entire htm and js files, saved them, waited a long time after typing a period, etc.

Now I am going to work on uninstalling Aptana.

like image 33
user106011 Avatar answered Oct 04 '22 05:10

user106011


I have found a plugin jquerywtp to do the same. This plugin will just patch 'org.eclipse.wst.javascript.ui_xxxxxxx.jar'.

Note: it is for Jquery 1.2.6

like image 25
Rakesh Juyal Avatar answered Oct 04 '22 05:10

Rakesh Juyal


There's no PDT package for Eclipse 3.7 Indigo and downloading it whole through Eclipse "Install New Software" can be very frustrating with sd unstable connection as mine, I've prepared clean install for Windows 64-bit suitable for PHP/JavaScript/jQuery development including the following:

Eclipse 3.7 WebJS Win 64-bit PDT 3.0 Eclipse Color Theme 0.11.1 JSDT jQuery - lightweight plugin to add jQuery support (tiny alternative to heavy plugins Aptana and jQueryWTP)

To enable jQuery code assist (auto completition) right click "JavaScript Resources" in your project (for PHP project you had to enable JavaScript support) and in "Libraries" tab click "Add JavaScript Library". jQuery library should appear among choices. Choose it, confirm everything and you're done. :)

Download: http://www.fileserve.com/file/MCpZjdv OR http://www.filesonic.com/file/1559490341

like image 27
Higegojira Avatar answered Oct 04 '22 07:10

Higegojira