Eclipse HTML5 Project - JavaScript Code Assist Only Works In Certain Cases -


I am using Eclipse Juno for the development of a stable web project. My project uses several different javascript files One of the files is a function in:

  function IconData (size, url) {this.size = size; This.url = url; }   

I have another task which gives an IconData type of object:

  functionPageInfo () {this.iconData = function () { Var iconData = new IconData (); IconData.size = 10; IconData.url = "http://somepage.com/image.png"; Return icon data; }}   

In another JavaScript file, I can create an example of PageInfo and call the function icon:

  var page = new PageInfo ( ); // popup stuff var = page.secondata ();   

If I type the icon then to start the code help CTRL + SPACE I get the following message popups in eclipse:

No default proposal

no default proposal

no template proposal < P> No Template Proposal

However, if I make a new example of icon data I like:

  var iconData = new IconData ();   

Then I type iconData. Then the CTRL-space code is assisted and shows me all the possibilities:

Code Assist Working

My question is, why does not the code work in the first scenario with the help of work, but does it work in the other?

Thank you.

How do I enable the code for JavaScript in Eclipse on Google? I saw many sites from which I needed to make sure that I have JavaScript development tools installed and I'm sure I installed them So that I know that this is not the issue.

I think this is a limit with JSDT. I suggest you complete the JDS To improve hyperlinks, hover, to expand JSDT.

Copy your JS file to a folder, convert your project as a tern and configure script path Please read your folder to know how to do this.

Here is a screenshot with your case (here the script folder is configured as a script path):

 closing with tern.java

Please note that tern.java has been developed with eclipse luna, So I suggest you do not use this version and Juno.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -