Thanks Robert,
I have updated with SVN. Everything looks great, apart from I will be needing local variables when the caret position is within a function:
e.g
-------------------------------------------------------
var a = "myvar1";
//caret position 1
function callMe(b, c, d)
{
//do something with b, c and d
//caret position 2;
var e = "myvar2"
//caret position 3
}
//caret position 4
-------------------------------------------------------
1) caret position 1 and 4 I would expect to see variable a and function callMe in the autocomplete
2) caret position 2 I would expect to see variables a, b, c, d and function callMe in the autocomplete
3) caret position 3 I would expect to see variables a, b, c, d, e and function callMe in the autocomplete
In org.fife.rsta.ac.java.SourceCompletionProvider, I notice you parse the document using Scanner and create code blocks and then work out which variables you can see in the autocomplete based on the caret position etc....
I noticed that you have parsed the Javascript file using Rhino (SourceCompletionProvider within javascript package) and extracted the functions and variables from there. Looks like it will need a method:
loadCompletionsForCaretPosition(...)
Another BIG thing for me is types and whether the variables will support auto complete for Strings, Numbers and Java class types?
e.g
var str = "abc";
var num = 12;
typing str. should show autocomplete with all javascript String methods available.
typing num. should show autocomplete with all javascript Number methods available.
A lot of the code I have written is custom for our own usage. I will also start my project again and extend the Javascript completion provider so I can add our own functions and shorthand completions (e.g for loop etc...). I will see how I get on with the new javascript package. Looks like this is coming at the perfect time for me

.
Kind regards
Steve Upton