Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » "static" confusion in JSDT auto completion proposals
"static" confusion in JSDT auto completion proposals [message #759177] Sun, 27 November 2011 12:01
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
Hi

I ran across what I think are two bugs in the JSDT auto completion.

When I create an empty JavaScript project with a JavaScript file that
just contains the following line:

DOMException;

I get no auto completion proposals on DOMException at all. Once I add
the following line below:

var e = new DOMException();

I get the auto completion proposals on DOMException on the first line
that I would expect (INDEX_SIZE_ERR, INUSE_ATTRIBUTE_ERR, …). This is
the first bug.

The second bug is that on "e" not only do I get the proposals that I
should get (code) but I also get the properties of the constructor
(INDEX_SIZE_ERR, INUSE_ATTRIBUTE_ERR, …). That seems to some JDT legacy
that kicks in. In JavaScript you can't access constructor properties
from an instance. I filed a bug for this [1] some time ago.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=343053

Cheers
Philippe
Previous Topic:Timeout calling webservice
Next Topic:jsdoc, arrays, and @type
Goto Forum:
  


Current Time: Wed Apr 24 22:56:59 GMT 2024

Powered by FUDForum. Page generated in 0.02859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top