Array completions , at any depth (ie [][][][][]) is part of the completion facility of
the the next jde release.
The next release will also include many bug fixes and a smart error handling for
completion...
This release will be available on monday (won't it paul ? ).
Stephane.
[EMAIL PROTECTED] wrote:
> Hello,
>
> Generally the new expansion feature in JDE 2.2.1 work great but i have
> discovered the following wrong behavior if you try to expand array-elements.
> For example:
>
> String stringArray = new String[3];
> stringArray[0].<--
>
> Lets call jde-complete-at-point at the arrow-position (direct after the point)
> then the following mysterious thing will be expanded:
>
> stringArray[0]this.main(...
>
> Now i can cycle over all methods of the current file...
>
> This is not what i want, i want to expand the methods and fields of class String.
>
> Hope this description helps!
>
> Anybody discovered the same behavior?
>
> After looking a few hours in the source of jde-complete.el i think the first
> problem is in the function 'jde-complete-java-variable-at-point'
> (line 349, Version JDE 2.2.1): here the code should also jump over ] and [ so at
>least the correct
> identifier wil be parsed (e.g. "anyArray[0].get", here es first-part "anyArray" must
>be parsed and this can only be done
> if [ and ] are added in line 349, otherwise the empty string will be parsed as
>first-part.
> As a second step now the correct Class must be found, and here i�m not sure, how to
>do it, without completey reading
> the whole jde-complete and jde-parse code :-)
>
> Any ideas??
>
> Klaus
> --
> Klaus Berndl mailto: [EMAIL PROTECTED]
> sd&m AG http://www.sdm.de
> software design & management
> Thomas-Dehler-Str. 27, 81737 M�nchen, Germany
> Tel +49 89 63812-392, Fax -220