|Re: Feature/Bug JS Code assist [message #550641 is a reply to message #540842]
||Wed, 04 August 2010 01:38
| Nitin Dahyabhai
Registered: July 2009
On 6/17/2010 9:17 AM, TMMlhVUtqv5sb7cn@dontgoto.onlatedotcom.info wrote:|
> Hi, I'm new to WTP so im unsure wether the behaviour I'm seeing is as
> intended and just not what i expected or as a result of a bug or poor
> setup on my part. Cosider the following exampleclass:
> function Bob()
> this.Name = "Bob";
> If in the same file i do one of var a = new Bob() or Bob.somefield =
> "some value"; The code assist identiies the class Bob and then using it
> from any file i get code assist help.
> If however I move the new Bob or assign field statement to a different
> file Bob is no longer identified as a class in its file and i no longer
> get code assist in the new file.
> Is there anyway to force code assist to identify the class without doing
> any of "change how the class is written in the firstplace", "create a
> new spurious field outside the constructor" or "create a spurious
> instance of the class in its file".
> The background to this is I've just been handed a large standalone JS
> library to maintain at work. Code assist would be a huge help to save me
> constantly looking up variable and methods but i cant substantialy
> rewrite the library to achieve this. Although adding a tag to each class
> (for example) would be possible.
> Thanks for your time and for any assistance,
Eclipse WTP Source Editing and JSDT
Eclipse WTP, IBM
Powered by FUDForum
. Page generated in 0.15800 seconds