Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Javascript Hints and autocompletion?(How can external .js files be referenced?)
Javascript Hints and autocompletion? [message #1062245] Thu, 06 June 2013 12:37 Go to next message
John McCann is currently offline John McCann
Messages: 1
Registered: June 2013
Junior Member
I'm developing a phonegap webapp with Eclipse +ADT + WTP. The javascript hinting and autocompletion only works for the current .js file being edited. Is there a way to include other .js files in the same, or other, directories. I have a very simple layout /assets/www/scripts. It would be nice if all .js files in scripts where included for autocompletion. Even nicer would be including jquery, knockoutjs, handlebars, etc. BTW, it was simple to do this in NetBeans. However, Eclipse is much more convenient for developing with ADT.

I've spent sometime googling and searching this forum. I can't find a clear, recent, answer.

Thanks!

Eclipse 4.2.0
ADT: 22.0.0
WDT: 3.4.1

Re: Javascript Hints and autocompletion? [message #1062262 is a reply to message #1062245] Thu, 06 June 2013 16:00 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2233
Registered: July 2009
Senior Member
If you're not in a JavaScript Project, go to the project's "Configure" context menu and make it one. Once the project is enabled for JavaScropt, open the project's Properties dialog and from the JavaScript>Include Path page, set /assets/www/scripts as a Source Folder. For anything you're not developing (jQuery, etc.), put them in a different folder and add that as a Library Folder.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Source Editing link between xml and xsd information
Next Topic:XML Editor Not Validating xi:Include
Goto Forum:
  


Current Time: Wed Jul 23 03:57:56 EDT 2014

Powered by FUDForum. Page generated in 0.15658 seconds