Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 71704

Summary: java editor: Caret positioning not right anymore (3.1)
Product: [Eclipse Project] JDT Reporter: Johan Compagner <jcompagner>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Johan Compagner CLA 2004-08-10 06:35:19 EDT
I have smart caret positioning enabled in the preferences of the java editor
(without it it is even worse)

i have this line:

     String[] tmp = (String[])al.toArray(tmp2);

if i start completely at front i get these places (|) when i use CTRL-
ARROW_RIGHT

|    String|Buffer[] |tmp |= |(String|Buffer[])|al.|toArray|(tmp2|);

i excpect something like this:

|    |String|Buffer|[] |tmp| |= (|String|Buffer|[])|al|.|to|Array|(|tmp2|);

it seems to me that somehow it always ignores one.
because if the starting position is different for example at front of the 
string buffer itself:

    |StringBuffer|[] tmp |= (|StringBuffer|[])|al.to|Array(|tmp2);


Is this a setting somehow? Or is one events seen as 2 things and it jumps 
directly 2 places?
Comment 1 Markus Keller CLA 2004-08-10 06:44:03 EDT
Java editor is JDT/Text. Moving.

Might be a dup of bug 71016 if build id < 20040804.
Johan, please provide your build id.
Comment 2 Johan Compagner CLA 2004-08-10 08:22:15 EDT
yes you are right
It is fixed now, just upgraded to 20040810 and it works as it should now again.

*** This bug has been marked as a duplicate of 71016 ***